This is a migrated thread and some comments may be shown as answers.

Microsoft JScript runtime error: '' is undefined, client on-load event

0 Answers 70 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 21 Jul 2011, 07:36 PM
Hi:

I am getting:
  Microsoft JScript runtime error: 'onLoadAmount' is undefined
error. 
<telerik:RadNumericTextBox ID="overAmountTextBox" Runat="server" MaxLength="13"
    MaxValue="999999.999999" MinValue="-999999.999999" Text='<%# Bind("overAmount") %>'
    TabIndex="7">
    <ClientEvents OnLoad="onLoadAmount" />
    <FocusedStyle HorizontalAlign="Right" />
    <EnabledStyle HorizontalAlign="Right" />
    <NumberFormat DecimalDigits="4" />
</telerik:RadNumericTextBox>
 
<script type="text/javascript">
    //<![CDATA[
    //
    function onLoadAmount(sender, args) {
        alert('Amount');
    }
    //]]>
</script>
The RadNumericTextBox is in a FormView control, when I get the error.  If I extract the code and place it on a simple page it finds the on load event.

Phil

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Phil
Top achievements
Rank 2
Share this question
or