I am calling a webmethod from an aspx page. The webmethod is in code behind only. Now, I want to know if it is possible to call a method from the webmethod?
For example:
//Simple Method
Public static void BindData()
{
// Bind DataList using DataTable
}
[WebMethod]
Public static void InsertData()
{
// Call BindData()
}
Here, I am getting error for DataList
control as it must use static type. Why?