Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8867371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:00:49+00:00 2026-06-14T17:00:49+00:00

The problem: I have a webpage with 18 text box fields that I need

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:00:50+00:00Added an answer on June 14, 2026 at 5:00 pm

    The following code will convert a Textbox[] into an equivalent string representation:

    var str = String.Join("\",\"", TextArray.Select(tb => tb.Text));
    if (!string.IsNullOrEmpty(str)) {
        str = "\"" + str + "\"";
    }
    str = "[" + str + "]";
    

    Keep in mind that double-quotation marks will not be escaped. Solutions can be found here and here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage where I put a text into a pre tag that
I have a webpage that plays a 'chime' sound when certain events occur. Problem
Ok, I have a very frustrating problem. I am parsing a webpage and need
The following page code have a problem that when i minimize the webpage the
I having been running into some strange problems with a webpage that I have
A very strange problem, I have a text box in aspnet web form. I
I have a strange problem with some documents on my webpage. My data is
I have some localization problems in my webpage. There are basically two problems (that
I have a web page containing a filtering text box and a list box.
I have a webpage with 2 list box ( list1, list2 ), I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.