My question is this: I have my HTML code and I'm doing field validation with JavaScript, but I would like to call the function and pass the value in CodeBehind. Example String name = uname (my input);
Is it possible?
<!--Form de Login -->
<label><b>Usuario</b></label>
<input type="text" runat="server" placeholder="Nome de Usuario" name="uname" id ="uname" onkeydown ="return soLetra();" onkeyup="return AutoTabular(40, uname, psw);" onkeypress ="return LimiteMaximoTextArea(uname, 15)" onclick ="return AlterarCampo(uname);"/>
<label><b>Senha</b></label>
<input type="password" runat="server" placeholder="Senha" name="psw" id ="psw" onkeypress="return LimiteMaximoTextArea(psw, 8);"/>
<button type="submit" runat="server" onclick ="teste2()">Login</button>
</div>