T
Tony Girgenti
Hello.
I'm trying to develop a web comsuming client using VS.NET 2003(VB), .NET
Framework 1.1.4322, ASP.NET 1.1.4322, WSE2.0 on a WinXP Pro Sp2 comuter.
I want to use a web form for this because i like the fact that there is no
installation involved, just copying the file to the users location.
In doing some testing, i discovered that a web form does not retain
variables entered by the user. I also discovered that it's because of
something called state management.
If i want to use the ViewState property to retain variables, i read an
article that said i need to put this into my program:
<form runat="server">.
Where do I put that statement ?
In order to save a textbox entry by the user, do i do this ?
ViewState("UserInp") = textbox1.text
and then to restore it when control comes back:
textbox1.text = ViewState("UserInp")
Is this all i need to do ? If so, where do i put this code ?
Any help would be gratefully appreciated.
Thanks,
Tony
I'm trying to develop a web comsuming client using VS.NET 2003(VB), .NET
Framework 1.1.4322, ASP.NET 1.1.4322, WSE2.0 on a WinXP Pro Sp2 comuter.
I want to use a web form for this because i like the fact that there is no
installation involved, just copying the file to the users location.
In doing some testing, i discovered that a web form does not retain
variables entered by the user. I also discovered that it's because of
something called state management.
If i want to use the ViewState property to retain variables, i read an
article that said i need to put this into my program:
<form runat="server">.
Where do I put that statement ?
In order to save a textbox entry by the user, do i do this ?
ViewState("UserInp") = textbox1.text
and then to restore it when control comes back:
textbox1.text = ViewState("UserInp")
Is this all i need to do ? If so, where do i put this code ?
Any help would be gratefully appreciated.
Thanks,
Tony