Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello FRNDS !!

Am working on Asp.net, C# , SqlServer 2005.

I have Survey Form on my Asp.net Webpage...In this I have total 15 Questions with Radio Button Options and a submit button.

So, In this 15 Questions.... Last 2 Questions are used for entering Comments (I used Textboxes here for last 2 questions to enter the comments)


In SqlServer 2005 Database, I have Two Tables with Name
1)SurveyAnswers (Table1)
2)Comments (Table2)


So, my requirement is i want to save last 2 comments data entered by user in Comments table. and the left over answers must be saved in Survey Answers Table.

I WANT TO SAVE THE DATA IN TWO DIFFERENT TABLES.


Please help,

Thanks in Advance.
Posted
Comments
[no name] 17-Dec-12 15:28pm    
what kind of help you require? the thing you wrote is a complete task. please ask the specific problem that you have
ZurdoDev 17-Dec-12 15:36pm    
Use a SQLConnection to connect to the DB, write a stored proc to write to the different tables, then use a SQLCommand object to execute it.
adriancs 17-Dec-12 22:22pm    
So?

Fire two queries as per your requirements or else as Graus said, you can do that as well... Where are you stuck at ??
 
Share this answer
 
This is trivial. You call a stored proc that stores the data in the tables you want. Where is the issue ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900