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
Post a Comment