Top "Asp.net-mvc" questions

The ASP.

Redirect to Action in another controller

I have two controllers, both called AccountController. One of them, lets call it Controller A, is in an Area called …

asp.net-mvc asp.net-mvc-3 c#-4.0 redirecttoaction
How can I pass parameters to a partial view in mvc 4

I have a link like this: <a href='Member/MemberHome/Profile/Id'><span>Profile</span&…

asp.net-mvc asp.net-mvc-4 razor partial-views
ASP.NET MVC - Find Absolute Path to the App_Data folder from Controller

What is the correct way to find the absolute path to the App_Data folder from a Controller in an …

.net asp.net-mvc absolute-path
Display a view from another controller in ASP.NET MVC

Is it possible to display a view from another controller? Say for example I have a CategoriesController and a Category/…

asp.net asp.net-mvc views controllers
ASP.NET MVC: No parameterless constructor defined for this object

Server Error in '/' Application. -------------------------------------------------------------------------------- No parameterless constructor defined for this object. Description: An unhandled exception occurred during …

asp.net-mvc invalidoperationexception
ASP.NET MVC ActionLink and post method

Can anyone tell me how can I submit values to Controller using ActionLink and POST method? I don't want to …

asp.net-mvc actionlink
How to reference a .css file on a razor view?

I know how to set .css files on the _Layout.cshtml file, but what about applying a stylesheet on a …

css asp.net-mvc razor
How to add and get Header values in WebApi

I need to create a POST method in WebApi so I can send data from application to WebApi method. I'm …

c# asp.net-mvc asp.net-mvc-4 c#-4.0 asp.net-web-api
Put content in HttpResponseMessage object?

Several months ago, Microsoft decided to change up the HttpResponseMessage class. Before, you could simply pass a data type into …

c# asp.net-mvc asp.net-web-api
How can I get the client's IP address in ASP.NET MVC?

I'm totally new to the ASP.NET MVC stack, and I was wondering what happened to the simple Page object …

c# asp.net-mvc