Hello my fellow Daniwebers,
I have a question for you.
I have an asp.net page that contains a structure that looks like so:
<asp:MultiView>
<asp:View>
<asp:UpdatePanel>
<asp:Panel>
<asp:TextBox ID="txtStartDate"
runat="server"
AutoPostBack="true" />
<asp:TextBox ID="txtEndDate"
runat="server"
AutoPostBack="true" />
</asp:Panel>
</asp:UpdatePanel>
</asp:View>
</asp:MultiView>
The curious problem is that I can't reference the two controls.
(The code behind is vb.net)
I have used:
txtStartDate.Text
and
Dim txtStart as TextBox = FindControl("txtStartDate")
Dim txtStart as TextBox = panelName.FindControl("txtStartDate")
To no avail.
Some times they will retrieve the control, but most of the time they will return null values.
Has anyone else had this issue before?
If so, can you please shed some light on my situation?
I would greatly appreciate it!
Thank you,
Begginnerdev