protected void AddCustomerSubmit_Click(object sender, EventArgs e) { //DropDownListProjectName DLCustomer ObjDLCustomer = new DLCustomer(); ELCustomer ObjElCustomer = new ELCustomer(); ObjElCustomer.Name = TextBoxCustomerName.Text; ObjElCustomer.projectId = Guid.Parse(DropDownListProjectName.Text); ObjElCustomer.Creator = Id; ObjElCustomer.CreatedAt = DateTime.Now; ObjElCustomer.Modifier = ObjElCustomer.Creator; ObjElCustomer.ModifiedAt = ObjElCustomer.CreatedAt; ObjDLCustomer.AddCustomer(ObjElCustomer, ObjConetion.connectionstring); // ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Inserted Customer Successfully');Window.location ='CustomerViewPage.aspx';", true); ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Inserted Customer Successfully');window.location ='CustomerViewPage.aspx';", true); }