• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Turn off dropdownlist repainting when it changes within an update panel

I have several dropdopwnlists within an ajax update panel.
When I change the values within any of the lists, all controls within the update panel reload data as expected such as textboxes and grids
However, I did notice that the dropdownlists themselves seem to repaint instead of just reload the data within them. Is there a way to not have this happen?

Regards to All
0
CSUGDEN
Asked:
CSUGDEN
  • 3
  • 2
1 Solution
 
ApexCoCommented:
Try placing each one inside its own update panel.
0
 
CSUGDENAuthor Commented:
Same behavior.
0
 
ApexCoCommented:
Ok, in your scriptmanager tag, is the PartialPageRendering property set to true?

If it is not, try adding that property and setting it to true.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CSUGDENAuthor Commented:
Yes I have enabled partialpage rendering
0
 
rameshrrCommented:

try place the dropdownlist binding code inside !IsPostBack snip as shown below

if (!Page.IsPostBack)
{
//ddl binding
}
0
 
CSUGDENAuthor Commented:
Thanks. I should have caught that one.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now