Click here to Skip to main content
15,901,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello I need some help please, I need to call a javascript function from my C# service app, can I do that, if I can, can you show me some example please.
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 25-May-11 17:33pm    
What do you mean "Service app" is it APS.NET or not. Tag your question properly.
--SA

1 solution

If this is a Web application, Javascript code is normally called on the client side, from HTML page, not from the server side. If your settings are different, please explain it — there is such thing as the server-side Javascript, see http://en.wikipedia.org/wiki/Server-side_JavaScript[^].

If you still did not get the answer you hoped for, please properly tag your question and explain your problem more exactly.

—SA
 
Share this answer
 
Comments
thatraja 25-May-11 21:53pm    
[Comment from OP]
thank you for your answer, what I am trying to do is the following.
I am writing a service using c#, and I need to be able to capture the web address if an user is browsing the web, for example if I open the site codeproject.com, the service that I writing should be able to capture this address. Is this possilble?
thank you very much for your help
Sergey Alexandrovich Kryukov 28-May-11 1:45am    
I don't know yet. What's the service? Some custom service, hot HTTP? Why do you think Javascript can help? Still not clear.
--SA

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