Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global Declaration

Status
Not open for further replies.

writedom

Programmer
Jul 26, 2003
8
US
I am declaring a global variable that I do not want re-declared each time the page is post back. What should I do?
 
You can declare it in a module, that way it is only ever declared once.
 
AP81,

How would you add a module to a web form?
 
I am on a Linux machine, but I think it is Project > Add Module, otherwise you can right-click on the solution and add a module.
 
AP81,

I added the module and declared the variable. But the variable is not recognized on my web form. Is there something else I should be doing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top