The Stoat
The Grim Squeaker
- Local time
- Today, 10:22
- Joined
- May 26, 2004
- Messages
- 239
Hi
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?
Thanks TS
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?
Thanks TS
Code:
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
End Sub