Persisting values on a webform

Discussion in 'ASP .Net' started by John, Oct 10, 2004.

  1. John

    John Guest

    Hi

    I am reading a context value (passed by calling page) in a web form. In page
    load I read it using
    x.text = CType(Context.Items("Calling_Page"), String). x being a textbox on
    the webform. Neither x nor Context.Items("Calling_Page") has any value in
    the click event of a button. How can I persist the value between the page
    load and the button click events on the same web form? I have tried using a
    public variable but that is cleared before the button click event for some
    reason too.

    Thanks

    Regards
    John, Oct 10, 2004
    #1
    1. Advertising

  2. Xavier Pacheco, Oct 10, 2004
    #2
    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. Server Control
    Replies:
    4
    Views:
    758
  2. Carlos
    Replies:
    3
    Views:
    5,017
    PeterKellner
    May 17, 2006
  3. Falcolas
    Replies:
    3
    Views:
    236
    Bruno Desthuilliers
    Nov 5, 2007
  4. Replies:
    3
    Views:
    252
    Dennis Lee Bieber
    Nov 21, 2007
  5. *no spam*

    Values not persisting in extender provider

    *no spam*, Oct 28, 2004, in forum: ASP .Net Building Controls
    Replies:
    5
    Views:
    180
Loading...

Share This Page