Skip to content

Monthly Archives: November 2013

Overload Webservice.

TO workout the error when we overload the [WebMethod] like the following you must change webservice code as follows However, we may also get errors if which is the auto […]

Use Session Enabled Webservice in WindowsForm.

public class MyService : System.Web.Services.WebService { [WebMethod(EnableSession=true)] public void setMethod(bool value) { Session[“myBoolVariable”] = value; } [WebMethod(EnableSession=true)] public bool getMethod() { return (bool)Session[“myBoolVariable”]; } }   In above Webservice Session […]