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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:34:35+00:00 2026-06-11T04:34:35+00:00

my application is MVC3 using ASPX views. I have two pages, create and Edit,

  • 0

my application is MVC3 using ASPX views. I have two pages, create and Edit, using the following dropdownlist:

<%= Html.DropDownList("VesselDiameter", new SelectList(new[] { "", "1", "2", "3"}))%> 

It works in create view and saves the data to the MS Sql table, however the value does not show in the edit view. If I use,

<%: Html.EditorFor(model => model.pRCA.VesselDiameter) %>

I used a similar dropdownlist in another view and it worked, but the model is different:

<%= Html.DropDownList("Vessel", new SelectList(new[] { "", "1", "2", "3"}))%>

instead of

<%: Html.EditorFor(model => model.Vessel) %>

The value is there! Would appreciate your suggestions. Thanks in advance.

  • 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-11T04:34:37+00:00Added an answer on June 11, 2026 at 4:34 am

    for Model.pRCA.VesselDiameter mvc generates this id (“pRCA.VesselDiameter”) so you should prepend pRCA to id value

    <%= Html.DropDownList("pRCA.VesselDiameter", new SelectList(new[] { "", "1", "2", "3"}))%> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an MVC3 application using Visual Studio 2010. I have an aspx
I am currently creating an MVC3 application using Ninject. I have two controllers which
I have an MVC3 application doing AJAX edit of a grid line using JQUERY
I am working on an MVC3 application using the Razor syntax and I have
I am creating an ASP.NET MVC3 application using NHIBERNATE. I have a base class
In my MVC3 Application I am using a controller actionresult to return two sets
I am using SignalR in my MVC3 application, and since I have implemented StructureMap
MVC3 vb.net Application using built in session management. I have an mvc3 application that
I have an MVC3 application using NHibernate. I've created my own membership and role
I'm developing an ASP.NET MVC3 application using the new Razor view engine but I'm

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.