Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
this is my application link http://www.mediafire.com/download.php?zyncso3qi0k6pqi[^]

i had 2 different user controls in one .aspx page.

first user control was dropdownlist binded with database. second user control was gridview.

if i select a company int the dropdownlist products of that company should be displayed in the second user control.

my problem was, when i am selecting the companies in the dropdownlist gridview user control is loading first and 2nd dropdownlist selected event is firing..

please help me...
Posted
Updated 16-May-12 9:45am
v3
Comments
Ed Nutting 16-May-12 8:47am    
Hi there, your question is a bit unclear, what were you actually trying to do? Do you want the SelectionChange event to occur before the GridView is updated?
Ed
varaprasadreddy 25-May-12 6:56am    
Hi friend sorry for the delay. what is mentioned is correct.
before the gridview is binding dropdownlist event has to be fired.
ZurdoDev 16-May-12 9:56am    
Unless something has changes in recent versions of .Net, you cannot control the order that controls are loaded, unless you do it through code. But if they are on your aspx page .Net will load them in whatever order it wants. You may want to look into using a client side change event and JavaScript to kick off a webservice so that you are more in control. Or, look into delegates and raising events.
leena206 21-May-12 7:44am    
actually your problem is not that much clear .. please elaborate

CSS
this problem may occur due to rendering.. while rendering put your 2nd usercontrol 1st ..
eg:
UC1 & UC2 //two user controls
at the loadtime keep order :
UC2
UC1
 
Share this answer
 
v2
I cleared my problem. thanks for helping me.

this is the link

http://reddyinfosoft.blogspot.in/2012/05/interaction-between-two-user-controls.html#more[^]

[edit] clickable link [/edit]
 
Share this answer
 
v2

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