please need help on inserting values into two diferent table by the click of a button,
Well, if the two tables that you are inserting to don't have relationships then executing a simple query would suffice.
like string strInsertQuery=@"Insert into table1 Values(value1,value2,value3);Insert into table2 Values(value4,value5,value6)";
Then, execute the query. But, your question is not clear. Please, elaborate and give us some sample codes.
You may create two method for two individual query operation. Then call that two method into the mehtod which is created for button(Under button operation).
Try this. If not work then provide your full code,i'll try to solve your problem.Anyway best of luck.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)