Hi, I am new to c#/.net and just switched over to it from classic asp(yesterday).
I am trying something very basic to begin with. I have a static form with about 20 questions (texts/textarea/checkbox/dropdown/radio) and it posts to a post page with a submit button.
I need the post page to gather the answered questions and write them to a sql db which has 1 column per question.
I did this by requesting every single form object and checking if it was null/empty and if not then putting it into a variable then I created a stored procedure and passed the 20 parameters, which inserts the record.
My question is: Is there a way that .net does this automatically? For example, .net maintains state vs classic asp I used to have to write the code to do that. I would like to be able to call something that gets the answers in an array or list and then write it to the db. What about Linq to SQL?
Thanks for your help,