Page_PreRender LABEL never changes

G

Gene Berger

After a button click, nothing gets posted back to the form. The
Page_PreRender is firing ... I am tracing it through line by line. But
lbl_ErrMsg3 never changes. (I also tried it with a textbox and it doesn't
change the Text either.)

Does anyone know what is wrong?
Thanks


HTML in ascx page
----------------------
<asp:Label ID="lbl_ErrMsg3" runat="server" Text="test3"></asp:Label>


vb in the ascx.vb page
----------------------
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.PreRender
Me.lbl_ErrMsg3.Text = "test this"
Me.lbl_ErrMsg3.Visible = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top