Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call a function in code behind from javascript

Status
Not open for further replies.

twetty1

Programmer
Jun 19, 2003
4
CA
Hi,
I have a function in a asp code behind like function1(). I want to write a javascript and in this script, i want to call function1(). How can i do it? Or anotther way to do it?
 


You cannot call an asp function from client javascript.
 
You can't call the function from the client side javascript, but you can rewrite it in the client side javascript. Just pass all relevant variables to the client that you need to have processed. This is easily done like so:
Code:
var blah = <%=someServerSideVariable%>;
-kaht
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top