Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Persisting values on a webform

Thread Tools

Persisting values on a webform

Posts: n/a

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.



Reply With Quote
Xavier Pacheco
Posts: n/a
This was a link just posted recently on doing this.

Xavier Pacheco
Xapware Technologies Inc

manage your projects:
the blog:
the book:
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
simple question on persisting variable values in a list Python 3 11-21-2007 06:22 AM
Functions as Objects, and persisting values Falcolas Python 3 11-05-2007 08:20 PM
GridView sorting and persisting values Carlos ASP .Net 3 05-17-2006 12:44 AM
Persisting Label/Select Box Control values changed from client side during Postback Server Control ASP .Net 4 12-08-2005 05:00 AM
Values not persisting in extender provider *no spam* ASP .Net Building Controls 5 10-31-2004 12:47 PM