Persisting variable values in a webform?
I'm just starting to design some basic pages with Visual Studio .net
I've created a web application project and a form which connects to a db and displays some data. I was wondering if the forms allow persistant variables i.e. If i add a variable "above" the code is it able to persist it's value after a button has been clicked on the form like VB or is it like a webpage that would require the variable to be stored in cookie or server-variable and retrieved after submitting the form? If it's the later any idea how?
Public Class NavigateData
Dim Inc As Integer
Web Form Designer Generated Code
Private Sub BtnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnNext.Click
Inc = Inc + 1
LBL_REPORT.Text = Inc
το χιούμορ είναι εκπαιδευμένη αυθάδεια -Αριστοτέλης
They that approve a private opinion, call it opinion; but they that dislike it, heresy; and yet heresy signifies no more than private opinion, - Thomas Hobbes