Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop Down List Question

Status
Not open for further replies.

Developer2U

Programmer
Nov 25, 2005
28
US
First, I am using C#/Visual Studio 2003.

I have a data entry webform that contains several drop down lists. I am populating the lists dynamically on the page !Ispostback method. I have a dropdownlist that the user selects from. On the selectedindexchanged event I populate the controls on the form with data from a database record.

This all works, however, what I don't like is the page jumbles (e.g. the dropdowns look like they jump up and down) on the postback, such as on the selectedindexchanged event.

I am only using the autopostback property on the search dropdown. I have disabled autopostback on the other dropdowns.

How can I minimize or reduce this jumbling effect on postback? I hope I have been clear on this. What would be causing this behavior? I'm only populating the dropdowns on the page_load isnotpostback.



Thanks

 
You could look at partial page caching in VS Help. Not sure if that would help or apply to your page.

Jim
 
I don't think I understand. Do you mean they move position?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconcachingportionsofaspnetpage.htm
 
Benson, I couldn't get that link to work. When you say partial caching, are you referring to fragment caching? I can't use that in this case because I can't use a user control for just the dropdowns.

I have used a single dataset to populate the dropdowns. I have cached the dataset.

Ca8, what I am trying to describe is that whenever the page posts back to itself the dropdowns don't really move in position but jumble around if that makes sense. I'm trying to prevent that from happening.

 
that link is in the help
you can open up the help and past that in.

 
I'm sorry, I still don't understand what you mean by "jumble around".


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top