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

Can we use multiple forms in single asp.net application?

3 Answers   Polaris,


What describes a query?

0 Answers  


Can we have a web application running without web.config file?

0 Answers  


How do you install windows service?

4 Answers   Tech Mahindra,


What is difference between Fragment Caching and Page Caching in ASP.NET?

0 Answers   PUCIT,


What are the different methods that are used during the page load?

1 Answers   Siebel,


What is Difference between Application object and Session Object

5 Answers  


Differentiate between globalization and localization.

0 Answers  


repeater and gridview diff? Why is repeater fast than gridview?

3 Answers   TCS,


What is the difference between adding reference in solution explorer and adding references by using ?

0 Answers  


How to sign out from forms authentication?

0 Answers  


what is Impersonation

3 Answers   Alliance One, Task Informatics,


Categories