How use my c# method in to html page by javascript
Hello, people.
I have method MyMethod in class MyClass:
using System;
using System.Collections.Generic;
using System.Web;
/// <summary>
/// Summary description for MyClass
/// </summary>
public class MyClass : System.Windows.Forms.UserControl
{
public MyClass()
{
}
public static string MyMethod()
{ return "some string"; }
}
And i want use this method in Html page by javascript. Tell me please, how call this method?