有一HTML页,现在我改为.aspx页,页面上有一个HTML的控件:<INPUT style="FONT-SIZE: 9pt" maxLength="18" name="sfzh">,我想知道怎么样才能在后台即.cs文件中对这个名为sfzh的控件进行操作?

解决方案 »

  1.   

    :<INPUT style="FONT-SIZE: 9pt" maxLength="18" name="sfzh" id="sfzh" runat="
    server">后台: this.sfzh.
      

  2.   

    response.write("<script>document.all.sfzh.........</script>")
      

  3.   

    这样写过之后:<INPUT style="FONT-SIZE: 9pt" maxLength="18" name="sfzh" id="sfzh" runat="
    server">
    this点不出来sfzh啊
      

  4.   

    楼主,你只要在控件的前面加个aspx,在.cs文件中,this.sfzh就OK 了,