Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 16-May-12 3:41am
Edited 16-May-12 10:45am
v3
Comments
Ed Nutting at 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 at 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.
ryanb31 at 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 at 21-May-12 7:44am
   
actually your problem is not that much clear .. please elaborate
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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]
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 25 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100