Thursday, September 27, 2012

How to use the WebMethod attribute is still a mystery to me.

One may get back JSON from a route in a web forms app by reaching out to a method in the code behind of a web form that is decorated with the WebMethod attribute.

[WebMethod(EnableSession = true)]
public static string Foo(string bar)
{

 
 

Santanna Energy is using this technique heavily. I have not been able to get it to work in my own experiments at home. When I figure out the secret, you'll be the first to know. ;)

No comments:

Post a Comment