Forum Moderators: open
If I put a normal INPUT, i cannot access it from the server, but if I put a server control (with asp.net) I cannont access with a script that runs in the client.
Thanx.
1) use regular input and use jscript to modify the value on the client side. Then you can access the value on the server side using Request.Form("inputname") or you can put runat=server on the html control and declare it on the codebehind or script section as server.web.ui.htmlcontrols.htmlinput and you can get the value that way.
2) use and asp:textbox and you can still manipulte it with jscript. If it is in a user control be sure to view the source when it renders to get the correct name/id that asp.net generates.
<INPUT id="bptext" style="WIDTH: 60px; HEIGHT: 24px" type="text" size="3" runat="server">
<INPUT id="bpmas" style="WIDTH: 20px; HEIGHT: 24px" type="button" value="+" onclick="incrementa()">
I want to increase bptext value with bpmas, using the function increase, but I cannot access bptext...what's happening?
My script begins as follows:
<script language="javascript">
function increase()
{
}
</script>
I'm learning and I need your guide, please....
Thanx.