Top "Asp.net-mvc" questions

The ASP.

How do you handle multiple submit buttons in ASP.NET MVC Framework?

Is there some easy way to handle multiple submit buttons from the same form? For example: <% Html.BeginForm("MyAction", "…

c# html asp.net-mvc http-post form-submit
How to use sessions in an ASP.NET MVC 4 application?

I am new to ASP.NET MVC. I have used PHP before and it was easy to create a session …

asp.net-mvc session asp.net-mvc-4 session-variables
Multiple models in a view

I want to have 2 models in one view. The page contains both LoginViewModel and RegisterViewModel. e.g. public class LoginViewModel { …

asp.net-mvc asp.net-mvc-3
How to get current page URL in MVC 3

I am using the Facebook comments plugin on a blog I am building. It has some FBXML tags that are …

c# asp.net asp.net-mvc razor
Using Razor within JavaScript

Is it possible or is there a workaround to use Razor syntax within JavaScript that is in a view (cshtml)? …

javascript asp.net-mvc razor
Returning a file to View/Download in ASP.NET MVC

I'm encountering a problem sending files stored in a database back to the user in ASP.NET MVC. What I …

c# asp.net-mvc asp.net-mvc-3 download http-headers
Could not load file or assembly 'System.Web.Mvc'

My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server... …

asp.net-mvc
An item with the same key has already been added

I get this error whenever I submit the form also the action method is not being called because of this: …

asp.net-mvc
How do you create a dropdownlist from an enum in ASP.NET MVC?

I'm trying to use the Html.DropDownList extension method but can't figure out how to use it with an enumeration. …

c# asp.net asp.net-mvc
Connection string using Windows Authentication

I am creating a website, but in the database I use windows authentication. I know that you use this for …

.net asp.net-mvc connection-string windows-authentication