Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my page, i have used 2 User controls and a gridview. On selected index changed event of gridview, i load a usercontrol and then it redirect to main page again but this time, i am not getting selected value of gridview.


Thanks!
Posted

1 solution

You have to manage the value in the usercontrol using viewstate and everything else will work fine as expected
 
Share this answer
 
Comments
zan0701 7-Apr-11 7:58am    
How will i get that value in User control and get back in Main page?
At present i have sent the value to user control and from there i return it back to main page as query string. But i don't think it's proper way..

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