Top "Asp.net-mvc" questions

The ASP.

How to redirect to Index from another controller?

I have been looking through trying to find some way to redirect to an Index view from another controller. public …

c# asp.net-mvc
ASP.NET MVC Html.DropDownList SelectedValue

I have tried this is RC1 and then upgraded to RC2 which did not resolve the issue. // in my controller …

asp.net-mvc
In MVC, how do I return a string result?

In my AJAX call, I want to return a string value back to the calling page. Should I use ActionResult …

asp.net-mvc ajax actionresult
How to return a file (FileContentResult) in ASP.NET WebAPI

In a regular MVC controller, we can output pdf with a FileContentResult. public FileContentResult Test(TestViewModel vm) { var stream = new …

c# asp.net asp.net-mvc asp.net-web-api
Routing with Multiple Parameters using ASP.NET MVC

Our company is developing an API for our products and we are thinking about using ASP.NET MVC. While designing …

c# .net asp.net-mvc routing
What is ModelState.IsValid valid for in ASP.NET MVC in NerdDinner?

On the NerdDinner example of Professional ASP.NET MVC 1.0 there's a method to create a new dinner as copied bellow (…

asp.net-mvc validation nerddinner
Session variables in ASP.NET MVC

I am writing a web application that will allow a user to browse to multiple web pages within the website …

asp.net-mvc session session-variables
Passing A List Of Objects Into An MVC Controller Method Using jQuery Ajax

I'm trying to pass an array of objects into an MVC controller method using jQuery's ajax() function. When I get …

c# asp.net-mvc jquery
Returning binary file from controller in ASP.NET Web API

I'm working on a web service using ASP.NET MVC's new WebAPI that will serve up binary files, mostly .cab …

asp.net asp.net-mvc asp.net-web-api
Relative Paths in Javascript in an external file

So I'm running this javascript, and everything works fine, except the paths to the background image. It works on my …

javascript html asp.net-mvc css path