Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

Iam designing a ASP.net pages with multiple dependent dropdown lists, If i change a value in a DDl every time my asp page reloading (like Flashng).Please give an sugetion to avoid this.
Posted
Updated 22-May-12 10:27am
v2

Hi there,

Well, you could have searched this in Google and got the answer but as you haven't I'll give you a better search to do:

Search Google for using AJAX in ASP.Net applications.

This will get you your answer. It has to be done with JavaScript code sending requests and getting responses from your server which is a page request but hidden from the user.

Hope this helps,
Ed
 
Share this answer
 
v2
Comments
myansweris 1-Jun-12 9:27am    
Thank you...
Bind DropDownList in the following ways.

if(!Page.IsPostBack)
{
    //Bind your DropDownList here in this block. 
}


I think this help you.
 
Share this answer
 
Whenever you Select a Different Value from DropDownlList and if other Dropdownlists are Dependent on the above one, you have to use AutoPostBack = true;

In such case every time you select value from Dropdown, your will flash and get data to Fill into Other Dropdown Lists.

For removing such Flash from User, you can you Ajax or JavaScript to block this.
 
Share this answer
 
Comments
myansweris 30-May-12 10:57am    
Thank you
John Bhatt 7-Sep-12 5:29am    
most welcome.
 
Share this answer
 
Comments
myansweris 24-May-12 10:35am    
Thankyou
There are other ways to implement cascading other than Update Panel. You can use one of the following:
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]

What you are doing is called cascading dropdown. If needed, have a look at it here: Google search result[^]

Few links:
Using CascadingDropDown with a Database[^]
Using CascadingDropDown with a Database[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900