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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:58:45+00:00 2026-06-03T05:58:45+00:00

I need to be dynamically build controls like textbox, checkbox, radiobutton etc by making

  • 0

I need to be dynamically build controls like textbox, checkbox, radiobutton etc by making a Ajax request and downloading the HTML. However once enough controls are on the screen and user submits the form, I need all the controls and it’s posted values. Posted values are easy to get using Non sequential indices in Asp.Net MVC. But, how do I get which control’s value it is? Put simply if the form has submitted the value “Hello World”. I need to be able to know from where did the Hello World. Was the textbox that submitted this value or the textarea?

I don’t need anything else like ID, name etc. Just need to know the type of control whether it was texbox, textarea, select or which one.

  • 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-03T05:58:47+00:00Added an answer on June 3, 2026 at 5:58 am

    when you dynamically build these client elements, you give them a name so they will post to the server.
    just follow a naming convention like:
    textarea1,textarea2…
    txt1,txt2,…
    then at the server, to collect the values – take all the keys that start with textarea to collect the values of textAreas…

    a nicer way will be to have a model with lists for each type, and when you generate the client elements, build their names so the values will be mapped to the correct list by the ModelBinder
    the syntax for these names is a bit nasty so work with client templates
    I used this post by haacked when i needed to build something like this

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

Sidebar

Related Questions

I need to dynamically build a Regex to catch the given keywords, like string
I need to dynamically build a list of textboxes using javascript and jquery. The
I need to dynamically generate radio or checkbox by jQuery. I use the following
I need to dynamically create textbox. This is my code, but with this I
I need to dynamically load banner images into a HTML5 app and would like
I need add paging to panel, which populated with dynamically-created controls. I want implement
I need to dynamically build chart based on user's submissions. These submissions are done
I need to build a form dynamically putting inputText field, I'm using this code:
I need to build a dynamically-resizing scrolling div. The div should dynamically resize to
Need: Ability to dynamically build Forms Structure (simple idea not actual structure) Admin: Form

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.