如何给客户端件设值

前台页代码如下:

<input id="Text1" type="text"  value="<%=text%>"/>

后台代码发下:

首先要定义一个全局变量

 public string text =string.Empty;
然后就可以在

 if (!this.IsPostBack)
        {
            text = "11";
          }

 

posted @ 2008-09-10 15:46  悟〈--觉  阅读(219)  评论(0)    收藏  举报