Top "Asp.net-mvc" questions

The ASP.

How to get the current user in ASP.NET MVC

In a forms model, I used to get the current logged-in user by: Page.CurrentUser How do I get the …

c# .net asp.net-mvc iis forms-authentication
Html.DropdownListFor selected value not being set

How can I set the selected value of a Html.DropDownListFor? I've been having a look online and have seen …

asp.net-mvc razor
How to declare a local variable in Razor?

I am developing a web application in asp.net mvc 3. I am very new to it. In a view using …

c# .net asp.net-mvc asp.net-mvc-3 razor
File Upload ASP.NET MVC 3.0

(Preface: this question is about ASP.NET MVC 3.0 which was released in 2011, it is not about ASP.NET Core 3.0 which …

c# asp.net-mvc asp.net-mvc-3
HTTP Error 500.19 and error code : 0x80070021

I have a simple webAPI build by Visual Studio 2013. It works well when I run it from VS13 but when …

asp.net-mvc iis asp.net-web-api asp.net-mvc-5 iis-8
ASP.NET MVC - passing parameters to the controller

I have a controller with an action method as follows: public class InventoryController : Controller { public ActionResult ViewStockNext(int firstItem) { // Do …

c# asp.net-mvc
Using Ajax.BeginForm with ASP.NET MVC 3 Razor

Is there a tutorial or code example of using Ajax.BeginForm within Asp.net MVC 3 where unobtrusive validation and Ajax …

asp.net-mvc asp.net-mvc-3
Render Partial View Using jQuery in ASP.NET MVC

How do I render the partial view using jquery? We can render the partial View like this: <% Html.RenderPartial("…

javascript jquery asp.net-mvc renderpartial
What is ViewModel in MVC?

I am new to ASP.NET MVC. I have a problem with understanding the purpose of a ViewModel. What is …

asp.net-mvc viewmodel
Proper usage of .net MVC Html.CheckBoxFor

All I want to know is the proper syntax for the Html.CheckBoxFor HTML helper in ASP.NET MVC. What …

asp.net-mvc checkboxfor