How to pass the SelectedValue in html.Dropdownlist MVC?

Which is the correct way to use Views (from MVC) in a web application? Develop the view as a class or as html plain code?

  • Answer:

    It doesn't matter as long as the View part of MVC ONLY handles tasks related to  the view. That means, setting up the UI, possibly plugging in data from the Model. I would also add that the view should not know what the previous or next screens are, since the controller should actually handle that task.

Michael W. Kelley at Quora Visit the source

Was this solution helpful to you?

Other answers

It depends on the requirement. I prefer html as they are quick to develop and render.

Madhav Raju

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.