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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:38:41+00:00 2026-06-17T09:38:41+00:00

I use MVC HTML Helper to render a Html DropDownList: @Html.DropDownListFor(m => m.ParentId, menuSelectList)

  • 0

I use MVC HTML Helper to render a Html DropDownList:

@Html.DropDownListFor(m => m.ParentId, menuSelectList)

I put this DropDownList in an HTML form. When press the button Submit in this form, a HTML Form Data will be created and sent in POST request. This data will contain key name ParentId with key value is DropDownList‘s selected value. How I can include DropDownList‘s selected text in this data with key name is ParentName.

  • 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-17T09:38:42+00:00Added an answer on June 17, 2026 at 9:38 am

    1) You could use an hidden “ParentName” input, and populate it with the selected text (javascript / jQuery) when an change event is fired on your combo (DropDownList).

    2) Just get the value from the key after submit (in the POST action), it should be possible (db query, for example).

    3) Build your selectList in a way that the key contains key AND value (separated by a ~ for example, and split the “key~value” in the POST action)

    I would personnaly go for second solution, but…

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

Sidebar

Related Questions

Possible Duplicate: Difference between DropDownlist or DropDownListFor Html helper I'm new in asp.net mvc
I'm trying to make use of the extended HTML Helper DisplayFor in this View:
How to use Html.Encode with html helper in ASP.NET MVC to prevent javascript injection?
Does anyone know how to use the new ASP.Net MVC 3 Html Helper WebImage
I found mvc html helper quite useful and easy to use. thats amazing invent.
I know how to use MVC's AntiForgeryToken attribute and it's associated HTML helper to
I am very new to MVC. I've been learning to use plain HTML or
I have an ASPNET MVC 2 project. When I use <%= Html.TextBoxFor(model => model.Login)
Is it possible to have to make a html for helper in asp.net mvc
Have a question about the design/usage of asp.net mvc here. In the html helper

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.