Questions tagged [asp.net-mvc-views]

A view is a standard (X)HTML document that can contain scripts. You use scripts to add dynamic content to a view.

To make it easier to add content to a view, you can take advantage of something called an HTML Helper. An HTML Helper, typically, is a method that generates a string. You can use HTML Helpers to generate standard HTML elements such as textboxes, links, dropdown lists, and list boxes.

167 questions
-2
votes
1 answer

Mvc View (The name *** does not exist in the current context)

Just out of curiosity. Even though my code is perfectly compiling yet I am getting a red line under sections that uses c# in the cshtml view. Once I hover over it I get (The name *** does not exist in the current context) Any Ideas? Note: all…
-2
votes
2 answers

How to place a button beside a select List

I am coding an MVC 5 view, and I want to place a button next to a select list. My current code places the button under the select list. Here is my code:
@Html.LabelFor(model => model.userName, htmlAttributes: new {…
Simon
  • 7,991
  • 21
  • 83
  • 163
1 2 3
11
12