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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top