Hello, I am trying to post data from one page to another, I keep getting an error message every time I run the code "Object reference not set to an instance of an object.". Please help
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If PreviousPage.IsCrossPagePostBack Then
CURRENT_POLICY.Text = "PO_NUMBER:" + CType(PreviousPage.Master.FindControl("PO_NUMBER"), TextBox).Text
Else
End If
End Sub
the control that I am trying to get the value from is PO_NUMBER on the first page. I am using Visual Studio 2008. Thank you
P.S. All of the pages use the master page