hi all
i am trying to embedded a javascript file to a class file by adding this to assemblyinfo.vb
<Assembly: WebResource("myproject.Events.JavaScriptEvent.numberic.js", "text/javascript")>
and in side my class file
Public Class NumericBox : Inherits TextBox
Public sub New()
Me.Attributes.Add("onkeypress", "javascript:return allownumbers();")
End Sub
i set my javascript file Build action to embeded
when i press a key. my javascript was not firing.
but i have this function in my javascript file and i am very sure tat folder i am pointing is correct
giving error
Unhandled exception at line 227, column 143 in http://localhost:89/Default.aspx
0x800a1391 - JavaScript runtime error: 'allownumbers' is undefined
If there is a handler for this exception, the program ma ...
Go to the complete details ...