cluster1
asked on
Using ASp.Net inline function by Java Script (urgent)
I want to use my asp.net function of inline code in java script function and expression.
I declarre vb programming code in inline of HTML Code i an aspx page.
How can i use a asp.net function in javascript or in HTML client and server control events.
Ex.
<% @ Import Namespace=System.Data %>
<% @ Import Namespace=System.Data.Sqlc lient %>
<Script Language="Vb" runat="Server">
Private Function xx(strName as string ) as Boolean
If strName="X" then
xx=True
Else
xx=False
Endif
End Function
</script>
<script Language="Javascript">
function abc()
{
var ss;
var a;
ss="Naren";
a=xx(ss); ''' display error to undefined object or function.
a=</script><%=xx("asds") %> <scirpt Language="Javascript"> '''' Occur problem here also when i use this by type
}
<script>
<body>
<input type="text" name="a" onkeypress="xx('asa')"> '''' Display undefine function or objects
Plz Help me
I declarre vb programming code in inline of HTML Code i an aspx page.
How can i use a asp.net function in javascript or in HTML client and server control events.
Ex.
<% @ Import Namespace=System.Data %>
<% @ Import Namespace=System.Data.Sqlc
<Script Language="Vb" runat="Server">
Private Function xx(strName as string ) as Boolean
If strName="X" then
xx=True
Else
xx=False
Endif
End Function
</script>
<script Language="Javascript">
function abc()
{
var ss;
var a;
ss="Naren";
a=xx(ss); ''' display error to undefined object or function.
a=</script><%=xx("asds") %> <scirpt Language="Javascript"> '''' Occur problem here also when i use this by type
}
<script>
<body>
<input type="text" name="a" onkeypress="xx('asa')"> '''' Display undefine function or objects
Plz Help me
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi cluster, any luck so far or did we get it right :))?