Click here to Skip to main content
15,889,367 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody!
I want to get values from children page on parent page( i use masterpage) in code behind. From children page is called from parent page. How i can do this?
Posted
Updated 5-Aug-11 7:24am
v2
Comments
walterhevedeich 5-Aug-11 11:03am    
Children page on parent page? Do you mean master page and content page?
_Zorro_ 5-Aug-11 11:05am    
I'm sorry but your question doesn't really make sense...
Herman<T>.Instance 5-Aug-11 11:07am    
maybe some code to illustrate what you want?
thanhntt89 5-Aug-11 11:22am    
yes. In parent page i use masterpage.
_Zorro_ 5-Aug-11 11:31am    
You maybe could mark digimanus Solution as an answer?

do a Page.FindControl()

=>
TextBox tbox = (TextBox)Page.FindControl("NameOfControl");
if (tbox != null)  // control is found
{
    // do with the tbox what you need
}
 
Share this answer
 
I found it here.

Let me know if you need further help.
 
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