Call javascript function from server

  • Thread starter Thread starter Alvaro Gutierrez
  • Start date Start date
A

Alvaro Gutierrez

How i call a csharp function from javascript?. Somebody
can write some example..? please...
<SCRIPT>
function Stop(){
call csharp function
window.close();
}
</SCRIPT>
 
You can use Remote Scripting. I haven't used it with .Net, but did with ASP.
You can also try XmlHttp. A while ago I was working on some code that could
take JavaScript objects, serialize them and pass them to web service, and
take serialized object and turn them into JavaScript objects. I had limited
success.

Kevin Swarts
nAlliance Corporation - Home of nGen 2.0
http://www.nAlliance.com
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top