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 4613984
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:37:55+00:00 2026-05-22T01:37:55+00:00

I have a textbox in a form that collects a name. If the client

  • 0

I have a textbox in a form that collects a name. If the client decides he/she wants to add more names they would click add more and another textbox would appear.

If the client created 15 text boxes how can I work with their values on the server? Let’s say that I name the first textbox, txtbox1, and each additional textbox would have an incrementing number.

Could I use the same naming convention that Asp.net assigns, figure out how many textboxes are on the page, and loop through them, or would they have to be initially rendered by the framework to begin with?

  • 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-05-22T01:37:56+00:00Added an answer on May 22, 2026 at 1:37 am

    The HttpContext.Current.Request.Params have the parameters of all submited values, even those you created using javascript, as long as the value of the text box is sent from the client to the server of course… I mean, you need to add the client-created textbox to the main form element being submited.

    You can make a naming convention yourself, but take care not to collide with Asp.Net conventions as that could be trouble to you… lets say: MyTextBox_1, MyTextBox_2.

    You can then iterate the HttpContext.Current.Request.Params, and see wich keys start with “MyTextBox_” and read all of them.

    EDIT: better yet you can use HttpContext.Current.Request.Form, because this contains only params sent submited in the form.

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

Sidebar

Related Questions

I have to add a textbox inside a form that is composed of a
If I have .Net Form with a component/object such as a textbox that I
I have a form that contains a TextBox. A pop up window will return
I have a windows form that sets the text property in a textbox to
i have a textbox on a form and i would like the user to
I have a textbox on a MS Access form that users are going to
I have a form that spawns a BackgroundWorker, that should update form's own textbox
I have a main form that contains two other child subforms. When a textbox
I have a textbox in a form field that gets populated by the user.
If I have a textbox txtInfo in a form that I submit via post,

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.