Save info in Hidden Field

Hidden fields are used to store data at the page level

 

protected System.Web.UI.HtmlControls.HtmlInputHidden Hidden1;

 

//to assign a value to Hidden field

 

Hidden1.Value="Create hidden fields";

 

//to retrieve a value

 

string str=Hidden1.Value;

 

posted @ 2010-02-18 16:16  greencolor  阅读(110)  评论(0编辑  收藏  举报