Re: How do we get the value from the hidden field ?
- From: "Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx>
- Date: Wed, 18 Jul 2007 13:28:24 +0100
"bienwell" <bienwell@xxxxxxxxxxx> wrote in message news:%231T4IUTyHHA.5024@xxxxxxxxxxxxxxxxxxxxxxx
When I click on the button, the text field would assign the value to the hidden field
This needs to be done client-side - it can't be done server-side...
Me.myHiddenField.Value = TextBox1.Text
Remove that line.
<asp:Button ID="btnProceed" runat="server" OnClick="btnProceed_Click" Text="Proceed" />
<asp:Button ID="btnProceed" runat="server" OnClick="btnProceed_Click" OnClientClick="document.getElementById('<%=myHiddenField.ClientID%>').value=document.getElementById('<%=TextBox1.ClientID%>').value;" Text="Proceed" />
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: How do we get the value from the hidden field ?
- From: bienwell
- Re: How do we get the value from the hidden field ?
- References:
- How do we get the value from the hidden field ?
- From: bienwell
- How do we get the value from the hidden field ?
- Prev by Date: Re: Are there any issues with installing PHP along with ASP.NET?
- Next by Date: Re: Please recommend a Web Hosting Service that supports ASP.NET and SQL server.
- Previous by thread: How do we get the value from the hidden field ?
- Next by thread: Re: How do we get the value from the hidden field ?
- Index(es):