variables

M

mark

how do you keep a variable "live" throo the page ?

im using aspx and vb codebehind - the variables keep losing their values
(eg search button gets data and i set a public variable to the searchid - so
that when an update is performed
accidental data cannot be entered because of the wrong searchid)
- only way ive got round this is to create a module called globalvar and
import it in to my mainpage - surely theres another way ?
 
F

Felbrigg

Variables are killed when the page does a post back.

Store these values in hidden fields, viewstate or Session.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top