To get controls inside static function
<p>I am calling function in codebehind from javascript using webservice.</p>

<pre><code>function  GetAdmissionType()
        {
            InitComponents();
            var type="";
            type=document.getElementById(dlAdmissionType.id).value;
             document.getElementById(hdnAdmissionType.id).value=document.getElementById(dlAdmissionType.id).value;

             else if(type=="2")
             {
                   InitComponents();
                   ViewResettingPanel()
                   makeFavorite(1);

             }
    }



       function makeFavorite(id) {
    PageMethods.SaveInfo(id, CallSuccess, CallFailed);
}

// This will be Called on success
function CallSuccess(res, id) {
alert(destCtrl);
}

// This will be Called on failure
function CallFailed(res) {
alert(res.get_message());
}
</code></pre>

<p>Following is my code in codebehind</p>

<pre><code>[System.Web.Services.WebMethod]
    public static void SaveInfo(String Id)
    {

       //to get textbox in form
    }
</code></pre>

<p>Problem is iam not getting controls in aspx page in SaveInfo.Can anybody help to access controls in form inside saveinfo?</p>
