前台页代码如下:
<input id="Text1" type="text" value="<%=text%>"/>
后台代码发下:
首先要定义一个全局变量
public string text =string.Empty; 然后就可以在
if (!this.IsPostBack) { text = "11"; }