i




 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get parent masterpage Control value from child
04-05-2013, 05:54 AM
Post: #1
Not Solved Get parent masterpage Control value from child
i have a master page in that master page i've textbox ,i assigned a valu to textbox, for the child master page,when accessing master page,i want to get textbox and textbox value?how


Quote
04-05-2013, 06:14 AM
Post: #2
Not Solved RE: Get masterpage Control value
if you like to get the control value of master page from some other page then you need to use FindControl method
Code:
TextBox txtBox = this.Master.FindControl("txtMasterPageMaster") as TextBox;

if you have nested master page then you need to do as below
Code:
TextBox txtBox = this.Master.Master.FindControl("txtMasterPageMaster") as TextBox;

[Image: 2604595733.png]
Quote
04-05-2013, 08:59 AM
Post: #3
Not Solved RE: Get masterpage Control value
Looks like you are facing the following problem. Go through the following link and see if this is what you want.

Code:
http://stackoverflow.com/questions/922033/filling-in-parent-master-page-from-child/922159#922159



View Asad Ali's profile on LinkedIn

Quote


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Get Parent URL From a Child window gopal_nivas 0 2,910 09-02-2015 09:03 AM
Last Post: gopal_nivas
  Find examples MDI Parent Child Form Load as shown in Figure dongtrien 3 2,225 12-09-2013 04:56 AM
Last Post: dongtrien
  retain the selected item to be in selected mode in masterpage gopal_nivas 1 913 09-17-2013 07:25 AM
Last Post: magnum_2007
  MasterPage Menu Control kbsrinivas.07@gmail.com 1 867 04-08-2013 06:12 AM
Last Post: magnum_2007
  Find Control inside stackpanel and hyperlink button inside datagrid control gopal_nivas 1 1,872 01-21-2013 12:36 PM
Last Post: magnum_2007



User(s) browsing this thread: 1 Guest(s)