Avatar of Codeaddict7423
Codeaddict7423
Flag for United States of America asked on

compilation error: asp.textbox = OnTextChanged="JavaScript function();

Hello,
I am attempting to call a JavaScript function from a asp:textbox control. My code is as follows:
---------
 <asp:TextBox ID="txtTotal" runat="server" Width="100px" Enabled="false" OnTextChanged="RegTotal();"  ></asp:TextBox>
--------
When  this JavaScript function is called from an input control, it works. that code follows:
-----
<INPUT TYPE=TEXT NAME="Total" SIZE=12 onChange="RegTotal();" value="0" style="background-color:#FFFFBF;font-weight:bold;" />      

               <asp:HiddenField ID="hdnTotal"  runat="server"/>
------

how can i call  this javascript function from a asp: textbox control?
ANY help is greatly appreciated.
ASP.NETVisual Basic.NETJavaScript

Avatar of undefined
Last Comment
Carl Tawn

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Carl Tawn

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck