I have a method (non static) on master page that will be called from content page Method(static WebMethod) . E.g Master Page:
public partial class User : System.Web.UI.MasterPage
{
public void loadcart()
{
//some code here that i will a div
}
}
Content Page:
public partial class Menu : System.Web.UI.Page
{
[webMethod]
public static void Order()
{
// some code here
// call Master page method from here
}
}
Order() (content Page Method) will be called from Jquery ajax and loadcar()(master page function) will be called with in Order() Function.
i need to call master page method from content page. please provide me some solution.
Any Idea please?