Page_PreRender LABEL never changes

Discussion in 'ASP .Net Web Controls' started by Gene Berger, Jul 23, 2008.

  1. Gene Berger

    Gene Berger Guest

    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
     
    Gene Berger, Jul 23, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ashish

    Page_Prerender

    Ashish, Sep 24, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    498
    Ashish
    Sep 24, 2004
  2. Ashish

    page_prerender

    Ashish, Sep 24, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,872
    Jonathan Allen
    Sep 25, 2004
  3. Soren Kuula
    Replies:
    1
    Views:
    457
    Henry S. Thompson
    Dec 1, 2005
  4. Kevin
    Replies:
    4
    Views:
    430
    Irrwahn Grausewitz
    Oct 17, 2003
  5. Knut Krueger
    Replies:
    8
    Views:
    280
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page