anthony graves

anthony graves

  • NA
  • 8
  • 3.2k

PASSING PARAMETERS BACK USING C#

May 8 2015 1:55 PM
 I'm saving data to database with save button. how do i re-enter another users info the that info is saved/
 
 
 
SqlDataAdapter da = new SqlDataAdapter();
                da.InsertCommand = new SqlCommand("RICI_PersonalInfo_SavePage_Test", MyConnection2);
                da.InsertCommand.CommandType = CommandType.StoredProcedure;
                da.InsertCommand.Parameters.AddWithValue("@SSN", txtSSN.Text);
                da.InsertCommand.Parameters.AddWithValue("@FileDate", txtFileDate.Text);
                da.InsertCommand.Parameters.AddWithValue("@SequenceID",SqlDbType.Char).Value = txtSequenceID.Text;
                da.InsertCommand.Parameters.Add("@Name", SqlDbType.VarChar).Value = Session["Name"].ToString();
                da.InsertCommand.Parameters.Add("@BirthDate",SqlDbType.VarChar).Value = txtBxDOB.Text;
                da.InsertCommand.Parameters.Add("@Gender", SqlDbType.VarChar).Value = RadioButtonListGender.Text;
                da.InsertCommand.Parameters.Add("@Citizen", SqlDbType.VarChar).Value = RadioButtonListCitizen.Text;

Answers (1)