protected void Button1_Click(object sender, EventArgs e) { MembershipUser CurrentUser = Membership.GetUser(); Guid UserId = (Guid)CurrentUser.ProviderUserKey; string SchoolName = TextBox1.Text.ToString(); string SchoolLocation = TextBox3.Text.ToString(); string FieldOfStudy = TextBox2.Text.ToString(); string From = TextBox4.Text.ToString(); string To = TextBox5.Text.ToString(); EducationBLL.InsertUserEducation(SchoolName, From, To, SchoolLocation, FieldOfStudy, UserId); }