Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have one problem ....

I have one Ajax TabControl in my page and inside that i have load 6 user control or custom control..

that all control contains one grid...
now the senario is that when i have select and row from grid placed inside the user control 2 at that time i want to call the public function that will bind the data to the other gird placed inside the user control 3...

i have made one function that will bind the grid of user control 3...
but my question is that for calling that function i have to create the instance of that user control and using that instance i have call that function but i want to call that with out creating any instance of that control......

if it is possible using any other method....
Posted

1 solution

hi try this
C#
 ("name_of_usercontrol")this.Page.FindControl("id_you_gave_to_the_user_control").The_function_to_be_Called()

example
((usercontrols_aboutmenu)this.Page.FindControl("aboutmenu1")).Page_Load(sender, e);
 
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