I have an ASP.Net application with c#.
I have this code :
C#:
public string a="abc";
[WebMethode]
public static Boolean check(string delegate)
{
.....
return true;
}
This method I call from javascript.Can somebody tell me how can i use “a” variable from webmethode ?
Either declare the variable as static (make it a class variable as opposed to an instance variable):
Or create an instance of the class inside the method: