protected void gvStewardship_RowCommand(object sender, GridViewCommandEventArgs e) { string url = System.Configuration.ConfigurationManager.AppSettings["EmailUrlStaging"].ToString(); if (e.CommandName == "DeleteStewardship") { // OrganizationInfo.UpdateStewardshipAsInactive(Convert.ToInt32(e.CommandArgument)); // OrganizationInfo.SetStatus(OrganizationStatus.Deleted, Convert.ToInt32(e.CommandArgument), "Deleted from stewardship"); LoadGrid(); } else if (e.CommandName == "Approve") { OrganizationInfo.PendingStewardshipChange(Convert.ToInt32(e.CommandArgument)); OrganizationInfo orginfoObj = new OrganizationInfo(Conversion.ParseInt(e.CommandArgument)); string body = @"<div style='font-size:11px; font-family:Verdana,Arial,Helvetica,sans-serif;'> <p>Dear Concern,</p><p> Your request have been approved click on following URL to continue your application.</p> <br /> <a target='_blank' href=" + url + ">Click</a></div>"; Email mail = new Email("*****@*****.**", orginfoObj.PrimaryEmail, "Registration Approval Email For Organization " + orginfoObj.LegalName + " .", body); LoadGrid(); } }