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. Advertisements

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:
    581
    Ashish
    Sep 24, 2004
  2. Ashish

    page_prerender

    Ashish, Sep 24, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,971
    Jonathan Allen
    Sep 25, 2004
  3. moid

    webform data never changes

    moid, Dec 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    390
    Marshal Antony
    Jan 21, 2004
  4. Sky Sigal
    Replies:
    0
    Views:
    436
    Sky Sigal
    Aug 3, 2004
  5. Jim Higson
    Replies:
    6
    Views:
    552
    Jim Higson
    Mar 10, 2006
  6. Soren Kuula
    Replies:
    1
    Views:
    622
    Henry S. Thompson
    Dec 1, 2005
  7. Kevin
    Replies:
    4
    Views:
    614
    Irrwahn Grausewitz
    Oct 17, 2003
  8. Knut Krueger
    Replies:
    8
    Views:
    612
    Knut Krueger
    Aug 20, 2013
Loading...