Mike Jonson

Mike Jonson

  • NA
  • 239
  • 193.5k

How use my c# method in to html page by javascript

Jul 29 2011 3:42 AM
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? 


Answers (1)