只有带有<runat=server>的服务器控件或html服务器控件才能绑定,

解决方案 »

  1.   

    可我就是因为不能加上  <runat=server>  呀,加上了对别的有影响,那怎么办呢
      

  2.   

    你为什么不直接用服务器控件呢?
    html控件是不能被服务器执行的,你这样写当然是不对的!
      

  3.   

    在你hidden控件中加一个id=hidden1
    你可以程序中写
     this.RegisterClientScriptBlock("sss","<script>this.window.document.all.hidden1.value='"+sqlRead["Content"].tostring +"'");
      

  4.   

    声明一个protected或者public的变量aaa,然后在html中写<input type=... value="<%=aaa%>">
    其实就和以前ASP的做法类似