在ASP文件我有两个ASP:文本框ASP:文本框只读
<asp:TextBox ID="textValue" runat="server" Width="100px"/>
<asp:TextBox ID="textValue2" runat="server" Width="100px" ReadOnly="true"/>
然后我将通过JavaScript获得
<asp:TextBox ID="textValue" runat="server" Width="100px" value="aaa"/>
<asp:TextBox ID="textValue2" runat="server" Width="100px" ReadOnly="true" value="bbb"/>
值,但刷新网页时终于得到
<asp:TextBox ID="textValue" runat="server" Width="100px" value="aaa"/>
<asp:TextBox ID="textValue2" runat="server" Width="100px" ReadOnly="true"/>
为什么值bbb是“丢失”?我怎样才能避免这种情况?
如何设置值为只读文本框 – 2011-05-03 13:30:30
使用JavaScript。一个典型的例子是日历+输入文本。 – 2011-05-03 13:49:34