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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

state management question w/ ASP.NET 1

Status
Not open for further replies.

jjonesal

Programmer
May 10, 2001
277
US
Okay, I'm new to web development and I'm just now getting started with asp.net.

I have read all the help files and articles I can find on this, but still have a question. If I want to store a small amount of session information on the client, I know I can use cookies, the ViewState property, Hidden fields, or Query strings. I know that using the ViewState property is more secure. And, I know that the Hidden fields affect the page size.

If it's just a small bit of information that doesn't need to be secured, and performance is roughly the same either way, would it be best to use a Hidden field or the ViewState property. The way I understand it, really the ViewState property does it's thing by implementing a hidden field anyway, right?

Any suggestions or articles on recommendations (other than MSDN, I've perused all of those) would be helpful.

Thanks in advance,

J. Jones
jjonesal@cableone.net
 
Use Viewstate. It is put in a hidden field anyway and you do not have to write much extra code. Viewstate exists as the result of all the "hidden field" methods developed for APS to avoid cookies, session variables, datbase etc. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top