protected void Button1_Click(object sender, EventArgs e) { if (FBId != null) { string email = DisplayEmail.ToString(); using (projectEntities1 context = new projectEntities1()) { var customer_alt = (from c in context.Customer_Info where c.Email == email select c).ToList(); if (customer_alt != null) { Response.Redirect("default.aspx"); } } using (projectEntities1 context = new projectEntities1()) { Customer_Info customer = new Customer_Info(); customer.Customer_Name = displayname.ToString(); customer.Email = DisplayEmail.ToString(); customer.Customer_Password = FBId.ToString(); customer.Phone_No = "phone no"; context.Customer_Info.Add(customer); context.SaveChanges(); Session["Customer_Id"] = displayname.ToString(); } Response.Redirect("~/default.aspx"); } }
private void BtnIncidentReportViewButtonClick() { MessageType = "SIR"; ContentControlBinding = new DisplayEmail(); OnChanged(nameof(ContentControlBinding)); }
private void BtnEMailViewButtonClick() { MessageType = "Email"; ContentControlBinding = new DisplayEmail(); OnChanged(nameof(ContentControlBinding)); }