Ok, hopefully someone can help
I have a page, detail.aspx that is built on a masterpage. The page contains an updatepanel (upTopNav) and panel (panel1) that holds a textbox control (txt_vendor_ID) and a button. The button click event has a postback URL of report.aspx. I'm trying to find the control that is nested within the updatepanel, but I can't seem to get a value placed. I don't want to declare a page directive to use strongtype for the control, as I will have several pages doing a similar postback.
I'm trying this
If Not Page.PreviousPage Is Nothing Then
Dim SourceTextBox As New TextBox
SourceTextBox = CType(PreviousPage.FindControl("txt_vendor_ID"), TextBox)
Vendor_ID = SourceTextBox.Text
Else
Vendor_ID = txt_vendor_ID.Text
End If
Any thoughts?