KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In asp file I have two asp:textbox <asp:TextBox ID="textValue" runat="server" Width="100px"/> <asp:TextBox ID="textValue2" runat="server" Width="100px" ReadOnly="true"/> then I set the value via javascript getting <asp:TextBox ID="textValue" runat="server" Width="100px" value="aaa"/> <asp:TextBox ID="textValue2" runat="server" Width="100px" ReadOnly="true" value="bbb"/> but when refresh the webpage finally get <asp:TextBox ID="textValue" runat="server" Width="100px" value="aaa"/> <asp:TextBox ID="textValue2" runat="server" Width="100px" ReadOnly="true"/> Why the value bbb is "lost"? How can I avoid this?
Tags (comma-separated)
Save Edits
Cancel