The problem:
I have a webpage with 18 text box fields that I need to insert into a row. The column names are kept inside a Label array called labelArray. The text fields that the user enters data in will be in a Textbox array called textArray.Text.
I want to know how I can pass all 18 of my text fields in textArray to my Data Access Layer where I make my insert these fields into the database. My problem right now is that I cannot pass and array over to a class file. Is it possible to covert to string and pass over the insert string to my Data Access Layer?
The problem in more depth:
There is two columns with data that are set to Date/Time in my MS access database. How can I pass through a Date Time object to my access table? Is it ok if it’s a formated string?
If you need to see some code I have, I’m ready to post them and will be on StackOverflow for the next few hours.
The following code will convert a
Textbox[]into an equivalent string representation:Keep in mind that double-quotation marks will not be escaped. Solutions can be found here and here.