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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between response.redirect and server.transfer?

563


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

536


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

1682


Explain Session state management options in ASP.NET.

601


How to disable disable browser's Back button in asp.net (JavaScript)?

574






Which browsers support the xmlhttprequest object?

531


What is localhost in asp.net?

576


What are the new login controls in asp.net 2.0?

530


What is manifest in .net framework?

551


How to set the pane area to transparent of a scrollPane component.?

575


Which namespace is used by ado.net?

575


Explain server-side scripting and client-side scripting.

524


What is difference between URL and URI?

636


Why mvc is better than asp.net? : Asp.Net MVC

477


What type of code, client-side or server-side, is found in a code-behind file of a Web page?

591