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;

原文地址:https://www.cnblogs.com/greencolor/p/1669194.html