I have a Gridview which is set to page. The problem is that I also have a button which executes a function. This function will only work if the databinding is in a if statement for !postback.
Whenever I try to page this GridView it gives me a blank page. I know why this is but is there a work around for it?
protected void Page_Load(object sender, EventArgs e)
GridView1.DataSource = ImageList.GetImages();
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
GridView1.PageIndex = e.NewPageIndex;