protected void btnAdd_Click(object sender, EventArgs e) { try { if (Page.IsValid) { DataTable data = getSchemaData(); stock.UpdatePrice(data); // Response.Write("<script>alert('Customer Added ')</script>"); // Response.Redirect(Request.Url.AbsoluteUri); // ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Alert", "Data has been saved", true); } } catch (Exception ex) { logger.Error(MODULE_NAME, "btnAdd_Click", ex); } }