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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call c# routine from javascript

Status
Not open for further replies.

Trebor100

Programmer
Joined
Mar 14, 2006
Messages
90
Location
GB
Hi all -
Have a small problem.

I need to call a c# routine from within a javascript.

Any ideas?

Cheers,
Rob
 
If you're referring to an ASP.NET page, the C# is processed on the server, and the client-side Javascript has no access to it. If you want a function called on the client side, you need to rewrite your C# function as Javascript and include it that way.

Lee
 
Cheers Lee - will do it that way then.

Thanks,
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top