HI, I have a web form which has 23 textbox's , I need to pass it to a function, which has SQL command to insert the values of 23 textbox to the table..
Is there a better way using DataSet and SQLDataAdapter? Becuase if not then i need to pass all the 23 vlues in the function like
//function to insert textbox values to the table
public int createRecord(val1,val2,val3,....val23)
{
string query = "insert into tablename values (.23 values...)";
sqlCommand command = new sqlCommand(query,connectionstring);
..
}
please suggest me atleast a good method or give a good link which can solve my problem..