protected void btnSubmit_Click(object sender, EventArgs e) { object userID = Membership.GetUser(HttpContext.Current.User.Identity.Name).ProviderUserKey; MB_QuestionsTableAdapter adapter = new MB_QuestionsTableAdapter(); Guid g = new Guid(userID.ToString()); adapter.InsertLIUQuestion(g, txtQuestion.Text); Response.Redirect("ContactFormSuccess.aspx"); }
protected void btnSubmit_Click(object sender, EventArgs e) { MB_QuestionsTableAdapter adapter = new MB_QuestionsTableAdapter(); adapter.InsertLOUQuestion(txtName.Text, txtEmail.Text, txtQuestion.Text); Response.Redirect("ContactFormSuccess.aspx"); }