DerekVM
asked on
Calling codebehind aspx.vb function from aspx page using javascript
How do I call a apsx.vb function from the aspx page, passing variables.
Ex:
aspx.vb:
============
dim SomeFunction(x as string, i as integet) as string
... do something like
SomeFunction = str(i) & x
end function
aspx:
============
// would like to call above function like
vas String = "Variable"
var ss = <%SomeFunction(sString, 5)%>
alert(ss)
Page Displays:
===========
Variable5 (in a alert box)
Ex:
aspx.vb:
============
dim SomeFunction(x as string, i as integet) as string
... do something like
SomeFunction = str(i) & x
end function
aspx:
============
// would like to call above function like
vas String = "Variable"
var ss = <%SomeFunction(sString, 5)%>
alert(ss)
Page Displays:
===========
Variable5 (in a alert box)
ASKER
I don't mind the code executing on the server, but I want to make the call to the function from the client, passing variables to the function from the page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cd&