Top "Asp.net-mvc-2" questions

ASP.

Can I get the controller from the HttpContext?

Given an HttpContext (or HttpContextBase), is there a way to get an instance of the Controller?

asp.net-mvc asp.net-mvc-2
Can't get sql server compact 3.5 / 4 to work with ASP .NET MVC 2

I'm using Visual Studio 2008 Pro. I'm probably missing something very obvious here, but I've been trying to get the CTP …

c# asp.net sql-server-2005 asp.net-mvc-2 sql-server-ce
How can we set authorization for a whole area in ASP.NET MVC?

I've an Admin area and I want only Admins to enter the area. I considered adding the Authorized attribute to …

asp.net asp.net-mvc-2 authorization asp.net-mvc-areas
ASP.NET MVC - Alternative for [Bind(Exclude = "Id")]

Is there an alternative for [Bind(Exclude = "Id")] (Related Question) ? Could I write a model binder?

c# asp.net-mvc-2 modelbinders
How to use Bind Prefix?

Say if I had this table in my db: Product It had ProductId ProductName ProductType Now for whatever reason I …

asp.net-mvc asp.net-mvc-2
How to change returned ContentType in ASP.NET MVC controller (ActionResult)

I have ASP.NET MVC controller named dictionary with method ControlsLangJsFile. Method returns view of users control (ASCX) which contain …

asp.net asp.net-mvc asp.net-mvc-2 asp.net-ajax
ASP.NET MVC 3 Custom HTML Helpers- Best Practices/Uses

New to MVC and have been running through the tutorials on the asp.net website. They include an example of …

asp.net-mvc asp.net-mvc-2 asp.net-mvc-3 html-helper
ASP.NET MVC 3 Partial View in layout page

I'm working on setting up a shared content (navigation) for an asp.net MVC layout page. Here is my partial …

asp.net asp.net-mvc-2 partial-views