Hi Tun
Try like this,,
Create a method in the content page ( ex :
ContentPageMethod()
) where you want to bind the grid. and invoke the method in master page using
Reflection
.
Below is my code for reference
Content Page :
public void ContentPageMethod()
{
GridView1.DataSource = Enumerable.Range(0, 10);
GridView1.DataBind();
}
Master Page :
protected void MasterPageButton_Click(object sender, EventArgs e)
{
this.Page.GetType().GetMethod("ContentPageMethod").Invoke(this.Page, null);
}