0

I have c# function which returns true/false, I want a JavaScript function to call this c# function and depending on the return value of the c# function, if true, I need the JavaScript function to show an alert.

So please How can I call a c# function in a JavaScript function? Thank you

5
  • 1
    better to use ajax for doing this Commented Mar 10, 2015 at 7:21
  • 1
    This post will guide you to call C# method from Javascript/jQuery, encosia.com/… Commented Mar 10, 2015 at 7:22
  • You should add more details, e.g. how your javascript code should interact with C#. Is your C# server side? If so, which server/technology? Is it some code embedding a javascript interpreter? If so, which one? Commented Mar 10, 2015 at 7:23
  • Check this dotnetcurry.com/… Commented Mar 10, 2015 at 7:23
  • Also: stackoverflow.com/questions/5828803/… Commented Mar 10, 2015 at 7:54

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.