Preserve values in ASP.Net Variables

ganapathi

Member
Joined
Jul 27, 2004
Messages
14
Programming Experience
1-3
Hi All,

How to preserve values of a variable ( or dynamic array) after each postback in ASP.Net.

Thanks,
Ganapathi
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
add a module to the web project and declare the variables to want preserved after each postback as:

friend <variable name> as <varible type>


or session variables/veiwstate all three work
 

mpdillon

Member
Joined
Feb 17, 2005
Messages
20
Location
Glen Mills, PA
Programming Experience
Beginner
How do I add a module to the web project. I see how to add a Class but not a module. Could you please explain. I am trying to convert from VB6 to Visual Studio 2005 and I am writing a Web Application.
thanks
 
Top Bottom