I have a RadGrid with a User Control (.ascx page) used as a pop up Insert/Edit form. I want to do some custom validation on the form but the javascript never runs. I looked at the source code of the page after it loaded and the script I wrote isn't even there. How can I make this work?
<asp:TextBox ID="txtHours4" onchange="ValidateNumber(this)" runat="server"></asp:TextBox>
<script language="javascript" type="text/javascript"> |
function ValidateNumber(txt) { |
alert("Entries must be numeric!"); |
} |