protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e) { GridView1.Visible = true; DetailsView1.Visible = false; string edit = Request.QueryString["edit"]; if (edit == "2") { EmailSend send = new EmailSend(); send.sendPwdEmail(); } }