Can an ASP.NET page be a WebService also?
<p>I know it's a little odd, specifically because a Page inherits from the System.Web.Page (or something) and a WebService inherits from System.Web.Service (or something).</p>

<p>But just thought I'd ask if there is any way to do this? Does anyone have suggestions to do this?</p>

<pre><code>public class MyWebService : System.Web.Services.WebService
{
    [WebMethod]
    public String MyMethod()
    {
        return "";
    }
}

public class MyWebPage : System.Web.UI.Page
{
    protected void ExecuteButton_Click(Object sender, EventArgs e)
    {
        ...
    }
}
</code></pre>
