variables

  • Thread starter Thread starter mark
  • Start date Start date
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 ?
 
Variables are killed when the page does a post back.

Store these values in hidden fields, viewstate or Session.
 
Back
Top