Hi thanks for reading my post.
Can anyone tell me how (if it's possible) to do a Cross-Page Postback when using a Master Page?
I used the following Code on the page I am posting to:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If PreviousPage IsNot Nothing AndAlso PreviousPage.IsCrossPagePostBack Then
Dim text As TextBox = CType(PreviousPage.FindControl(?TextBox1?), TextBox)
If text IsNot Nothing Then
Label1.Text = text.Text
End If
End If
End Sub
It works fine if placed on a page that does not have a Master, but when I put it on a page that does have a Master Page the FindControl fails.
Is there another way I should reference a control on a Previous Page (using Cross-page Postback) when using Master Pages?