Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Page_PreRender LABEL never changes

Thread Tools

Page_PreRender LABEL never changes

Gene Berger
Posts: n/a
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?

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
page_prerender Ashish ASP .Net 1 09-25-2004 04:59 AM
Page_Prerender Ashish ASP .Net 0 09-24-2004 01:06 PM
Binding Repeater in Page_PreRender Sparhawk ASP .Net 1 09-05-2004 09:10 AM
Can EventHandler fire in Page_PreRender event? TPS ASP .Net 2 08-06-2004 02:58 PM
OnClick Handler for Buttons added During Page_PreRender? How? Sky Sigal ASP .Net 0 08-03-2004 07:16 PM