Monday 3 August 2015

Grid View buttons not working after Download in SharePoint web part c#

If you are using download button in the GridView and after downloading anything if you are not able to generate any click events on the gridview then add the below code in the Page Load event of the visual web part in SharePoint

string js = @"_spSuppressFormOnSubmitWrapper = true;";
 this.Page.ClientScript.RegisterStartupScript(this.GetType(), "js", js, true);

No comments:

Post a Comment