Get value from input html in codebehind c# -


i did research , found out how can read value input html textbox.

this worked fine me, @ once doesn't work.

this code, input html returns null

<input type="text" name="inpnickname" placeholder="nickname" data-placement="right" data-toggle="tooltip" title="nickname" id="txtnickname" runat="server"/>  <input type="text" name="inppassword" placeholder="password" data-placement="right" data-toggle="tooltip" title="password" id="txtpassword" runat="server"/>  string nickname = request.form["inpnickname"]; string password = request.form["inppassword"]; 

if change request.form[] id's, still doesn't work.

since running @ server...

txtnickname.value , txtpassword.value give need.

when specify runat="server" giving property codebehind class. can access property , it's properties directly.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -