<input type="text" id="myText">
改为
<input type="text" id="myText" runat="server">
付值
myText.Value = "我的内容"

解决方案 »

  1.   

    在ASPX文件里面:
    <input type="text" id="myText" value="<%="我的内容"%>">
      

  2.   

    To leafsoft(leafsoft) 
      按照我的方法改啊
      

  3.   

    <input type="text" id="myText">
    改为
    <input type="text" id="myText" runat="server">在CS文件里面添加声明:
    protected System.Web.UI.HtmlControls.HtmlInputText myText;在你需要赋值的地方:myText.Vaue = "我的内容";
      

  4.   

    按:timmy3310的方法出现如下错误:我该怎么办?
    错误:
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.