How to set/get parent page values in child page in asp.net

Answers were Sorted based on User's Feedback



How to set/get parent page values in child page in asp.net..

Answer / sumit guglani

using context handler we can retrieve read only public
members(property) of parent page.

Is This Answer Correct ?    4 Yes 3 No

How to set/get parent page values in child page in asp.net..

Answer / jsureshdotnet

get=var uid=document.getElementById('txtUserId').value;
set=document.getElementById('txtUserId').innerText=uid;

Is This Answer Correct ?    7 Yes 7 No

How to set/get parent page values in child page in asp.net..

Answer / renganathan (divas)

If Not Page.PreviousPage Is Nothing Then
Dim SourceTextBox As TextBox
SourceTextBox = CType(PreviousPage.FindControl
("TextBox1"), _
TextBox)
If Not SourceTextBox Is Nothing Then
Label1.Text = SourceTextBox.Text
End If
End If

Is This Answer Correct ?    6 Yes 12 No

Post New Answer

More ASP.NET Interview Questions

which one is faster execute reader, scalar, execute non query ?

18 Answers   Intiger, Minecode,


I need some questions regarding asp.net for 1.5yrs of Experience.

1 Answers  


What is css and what is it used for?

0 Answers  


Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc

0 Answers  


Which platform does Microsoft .NET use for exchanging data between applications?

0 Answers  


What are the benefits of view state?

0 Answers  


Define viewstate in .net?

0 Answers  


What are the different kinds of assemblies?

0 Answers  


About friend and Protected friend ?

3 Answers   MMTS,


Explain how do you validate the controls in an asp .net page?

0 Answers  


What are the types of assemblies and where can u store them and how a private assembly is used only by a single application, and is stored in that application's install directory (or a subdirectory therein)?

3 Answers   Accenture,


What is the use of sessionstate tag in the web.config file?

2 Answers  


Categories