I have asp.net page (Form = runat server )
2 textboxes:
<input type="text" id="tb1" />
<asp:TextBox ID="tb2" runat="server" />
and a button submit.
However when I put some values in them - and press the button - Only tb2 is getting back its value from the server.
I thought that inputs fields values are going from client to server and back always !
in what event ( in page life cycle) Does tb1 lose its value ?
<input type="text" id="tb1" /> is literal HTML.
There is no server-side code that puts the value back in.
That feature is part of server-side controls.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With