locked
how to call c# code behind method in javascript function in HTML5 app for Windows Phone 8? RRS feed

  • Question

  • Hi,

    I am working for HTML5 app for Window Phone 8 for that I received UI part from designing team. They have developed these UI's by using HTML5, CSS, jQuery and JavaScript.

    I have written some C# method to access the PHP web service for login by passing parameters(Email & Password) in POST method. Now I have to call this C# method on "Login" button click event which is designed in HTML5.

    Problem: How can I call this C# public methods in JavaScript function? So that I can call that JavaScript function on onClick event of "Button" control.

    I searched a lot but could not get any idea. Somewhere I read about WebBrowser.ScriptNotify event but it is not suitable in this scenario.

    How can I achieve this? Please guide me.

    Please give me any reference link or code snippet, so that I can complete this task.

    Thanks in advance!

    Tuesday, May 14, 2013 1:02 PM

Answers