Tag Info

New answers tagged


I used this syntax and it is working fine: Application Page: [System.Web.Services.WebMethod] public static string myWB() { return "my HTML or JSON" } The call from the visual web part is same as yours. So maybe try to add just [System.Web.Services.WebMethod] to your method.


When you use a trusted connection it uses the app pool account of the Web Application. Make sure that the app pool account has permissions to the database.

Top 50 recent answers are included