F
francois
hi,
In my ASP.NET page i have
2 ASP.NET TextBox and one hidden field like this following.
<asp:textbox id="TextBoxOne" Runat="server"></asp:textbox>
<asp:textbox id="TextBoxTwo" Runat="server"></asp:textbox>
<input id="InputHiddenPrice" runat="server" type="hidden">
Bascially what I want to achieve is that when I put a value inside the
TextBoxOne, I want that a value is automatically displayed in TextBoxTwo
that would be something like
TextBoxTwo.Text = TextBoxOne.Text * InputHiddenPrice.Value
(here i do not take the eventual type casting problem, it is just to explain
what i want to achieve).
Is there someone that can point me out what event handler i need to use in
the TextBoxOne? I tried to put
<asp:textbox id="TextBoxOne" Runat="server"
OnTextChanged="JavascriptMethod()></asp:textbox> but it brings a aspx
exception when i run it (it cannot compile the aspx).
How can i solve this and basically my question is how to use javascript with
server side controls? And what kind of event I need to use in my case?
I hope my problem is explained cleared enough
Best regards and thanks in advance.
Francois
In my ASP.NET page i have
2 ASP.NET TextBox and one hidden field like this following.
<asp:textbox id="TextBoxOne" Runat="server"></asp:textbox>
<asp:textbox id="TextBoxTwo" Runat="server"></asp:textbox>
<input id="InputHiddenPrice" runat="server" type="hidden">
Bascially what I want to achieve is that when I put a value inside the
TextBoxOne, I want that a value is automatically displayed in TextBoxTwo
that would be something like
TextBoxTwo.Text = TextBoxOne.Text * InputHiddenPrice.Value
(here i do not take the eventual type casting problem, it is just to explain
what i want to achieve).
Is there someone that can point me out what event handler i need to use in
the TextBoxOne? I tried to put
<asp:textbox id="TextBoxOne" Runat="server"
OnTextChanged="JavascriptMethod()></asp:textbox> but it brings a aspx
exception when i run it (it cannot compile the aspx).
How can i solve this and basically my question is how to use javascript with
server side controls? And what kind of event I need to use in my case?
I hope my problem is explained cleared enough
Best regards and thanks in advance.
Francois