HomeLearnGeneral ASP.NET VideosHow Do I: Use Control State to Persist Information for a Custom Web Server Control  

[How Do I:] Use Control State to Persist Information for a Custom Web Server Control

Please install Silverlight or click download to watch video locally.

In this video Chris Pels will show how to store information related to a custom web server control in the control state which is independent of the ViewState information for the control. Unlike ViewState the control state can not be turned off and is therefore a more reliable way to store important information for a control. A discussion of what types of information are appropriate to store in control state is also included.

Presented by Chris Pels

Duration: 13 minutes, 57 seconds

Date: 17 December 2007

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 7

Leave a Comment

cv_vikram : On August 09, 2008 8:28 AM said:

thanjs...

kimson36 : On September 28, 2008 11:40 AM said:

thanks

djibril_chimere_DIAW : On October 29, 2008 7:58 AM said:

Thanks ! Jërëjëf !

bohunt : On February 13, 2009 3:30 PM said:

Thanks.

cleverwisdomforever : On April 06, 2009 3:16 AM said:

Thanks Chris Pels.

haithemara : On May 09, 2009 5:22 AM said:

Good video.

paulyXvpf : On June 04, 2009 1:41 PM said:

Chris - good video. You video features a number that gets incremented when a user performs a button click, it creates a post back with the new number. Thats great...now...Question: How do I get a control like a label or text box to pull an auto incremented value from a SQL server database column, and, upon page_load, get this incremeted value to populate onto the form page? Basically, I'm creating this VB.NET form to database project for a company, and they want their employees to click the web based form and have a brand new reference number autopopulate.

Thanks

Paul

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities