Call server side method using javascript
ServerSide Method:-
System.Web.Services.WebMethod]
public static string SetDownloadPath(string ID)
{
HttpContext.Current.Session["logo"] = ID;
return ID;
}
public static string SetDownloadPath(string ID)
{
HttpContext.Current.Session["logo"] = ID;
return ID;
}
Javascript To Call:-
Need To change in Following:-
<cc1:ToolkitScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release"
EnablePageMethods="true">
</cc1:ToolkitScriptManager>
EnablePageMethods="true"
Comments
Post a Comment