Home / General / ViewState: Misunderstood monster or fluffy sleeping kitten?
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

ViewState: Misunderstood monster or fluffy sleeping kitten?

The former!Let me explain something to guys. ViewState is more complicated than you think it is. That's why you all abuse it so much :) Let me demonstrate:public class MyControl : Control{ public string Text { get { return (string) this.ViewState["Text"]; } set { this.ViewState["Text"] = value; } } protected override void OnLoad(object sender, EventArgs args) { if(!Page.IsPostBack) { this.Text = "Hello World!"; } } public override void Ren





Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites