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

  • Home
  • SEARCH
  • 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 6702741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:05:21+00:00 2026-05-26T07:05:21+00:00

I have a very large form that represents a month or more of data.

  • 0

I have a very large form that represents a month or more of data. Each day has 3 drop-downs the user can update and then i need to save the data in the form. I should mention I had to make a custom dropdown (HERE) to use a style class so it’s not the standard Html.dropdown()

So what I’d like to do is something like…

View:

    @{

        List<string> DropdownValues = new List<string>();

    }

    @using(Html.BeginForm("Method","Controller",FormMethod.Post,new{ Data = DropdownValues}))
    {
      @Html.CustomDropdown("Name1",ListOfOptions1)
      @Html.CustomDropdown("Name2",ListOfOptions2)
      @Html.CustomDropdown("Name3",ListOfOptions3)

      <input type="submit" value="Submit" />
      @{
         //Do on submit 
         DropdownValues.add(Name1.value);
         DropdownValues.add(Name2.value);
         DropdownValues.add(Name3.value);

      }
    }

Ideas?

Thanks!

  • 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-26T07:05:22+00:00Added an answer on May 26, 2026 at 7:05 am

    You can access form element direct from controller code without them having to be part of the Action parameters. Maybe this is what you are looking for?…

    //In controller post action
    
    string name1 = Request.Form["Name1"];
    string name2 = Request.Form["Name2"];
    //etc...
    

    You could even put it in a loop depending on what you are doing with the data…

    for(int i = 1; i <= 30; i++)
    {
       string nameX = Request.Form["Name" + i];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large 60+ question form that the user can start to
I have a very large possible data set that I am trying to visualize
I have a very large XML file which has like 40000 data, and when
I have a large validation form that is working very well except for one
I have a data processing system that generates very large reports on the data
I have a very large Form with many date fields that need to be
I have a very large data file with around 60000 rows. I need to
I have a very large set of permissions in my application that I represent
I have a very large list Suppose I do that (yeah, I know the
I'm writing an app that parses a very large logfile, so that the user

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.