In my application I need to call aspx.cs method from javascript function call.
I tried this one in
Header My Javascript Function:
function MyHeader() {
PageMethods.BindHeaderGrid();
}
My code behined method:
[WebMethod]
public void BindHeaderGrid()
{
GrdHeader.DataSource = ds.Tables[0];
GrdHeader.DataBind();
}
But it is not call this function.

Manas MohapatraRank #182 · 13.2K reputationPosted May 22, 2017, 4:56 AM EDT
Dharmraj ThakurRank #577 · 4.2K reputationPosted May 22, 2017, 8:20 PM EDT