M
msch-prv
This is a very elementary problem but it'is really confusing me.
To summarize, I have a simple textbox on a page with some data. After
post-back, the textbox contents show up fine. When I attempt to read
the textbox contents during the Pre-render event however, I get
nothing. (Note that the textbox is not embedded in any parent control
and page viewstate is enabled.)
Obviously, I'm missing something basic here. As far as I know,
Viewstate data should be available by render time. Thanks for any
pointers.
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs)
Response.Write("Info: " & Me.layProdCat.Text)
End sub
<div>
Info: <asp:textbox id="layProdCat" runat="server" />
</div>
To summarize, I have a simple textbox on a page with some data. After
post-back, the textbox contents show up fine. When I attempt to read
the textbox contents during the Pre-render event however, I get
nothing. (Note that the textbox is not embedded in any parent control
and page viewstate is enabled.)
Obviously, I'm missing something basic here. As far as I know,
Viewstate data should be available by render time. Thanks for any
pointers.
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs)
Response.Write("Info: " & Me.layProdCat.Text)
End sub
<div>
Info: <asp:textbox id="layProdCat" runat="server" />
</div>