Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to invoke a c# function from javascript in my asp.net web application is it possible?

Or, if not, I want to set the mute property of windows media player to true from javascript.


If anybody knows any one of this please help me.
Posted
Updated 23-Feb-11 21:51pm
v3
Comments
Dalek Dave 24-Feb-11 3:51am    
Edited for Grammar and Readability.

u have to use AJAX dll for that
see this
http://msdn.microsoft.com/en-us/library/aa479042.aspx[^]
 
Share this answer
 
I belive the following link can help you to resolve the first one

http://msdn.microsoft.com/en-us/library/ms178208.aspx[^]

This uses client call back feature (This is available from ASP.NET 2.0)
 
Share this answer
 
Comments
Dalek Dave 24-Feb-11 3:52am    
Good Call.
senguptaamlan 24-Feb-11 4:03am    
I belive the following link solves the 2nd question
http://www.microsoft.com/windows/windowsmedia/howto/articles/adsolutions2.aspx
i need to invoke a c# function from javascript in my asp.net web application is it possible

Yes, you can. Try:
1. XMLHttpRequest
2. PageMethods
3. Callback

Pick the one that suits you and implement it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900