i have a gridview inside an update panel. and i have a submit button outside the update panel. Now during the add/edit/delete event of my operations , my page is partially posting back. The problem is if the user clicks on edit button, then my submit button which is outside the update panel should get visible = false. and when the row is finally updated then it should come visible and if all the rows are deleted and only footer remains then submit should again become invisible. Any idea, how to do this when page is partially getting updated!
i have written the code but due to partial page updation it is not working.
Please guide me how to deal with this...
Code:
public void gridDWApp_RowEditing(Object sender, GridViewEditEventArgs e)
{
btnSubmit.Visible = false;
dtDWApp = new DataTable();
gridDWApp.EditIndex = e.NewEditIndex;
dtDWApp = (DataTable)ViewState["vdtDWApp"];
gridDWApp.DataSource = dtDWApp ;
gridDWApp.DataBind();
}
-- Abhishek