asp.net-mvc-controller

Should controller lifestyle always be transient in Windsor configuration for ASP.NET MVC?

I ran into a problem where I had an Html.DropDownList in my view that would postback the selected value the first time I submitted the form, but each subsequent postback would only post data from the initial postback. So I added lifestyle="transient" to the component element where I had configured my controller for castle windsor, which ...

How to gather arbitrary length list data in ASP.NET MVC.

I need to gather a list of items associated with another item from my user in a ASP.NET MVC project. I would like to have a controller action like bellow. [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(int x, int y, IEnumerable<int> zKeys) { //Do stuff here } How can I setup my form to pass data in this way? If data of...

How to achieve a dynamic controller and action method in ASP.NET MVC?

In Asp.net MVC the url structure goes like http://mysite.com/{controller}/{action}/{id} For each "controller", say http://mysite.com/blog, there is a BlogController. But my {controller} portion of the url is not decided pre-hand, but it is dynamically determined at run time, how do I create a "dynamic controller" that maps anything t...

MVC2 without Routing

I have a case where MVC's routing (mapping a url to a controller) is just getting in the way. I want to circumvent it and send all urls to a single controller (no matter the format and without any attempt to parse them). I assumed this would be easy, but I'm stuck. Help is much appreciated. ...

ASP.net MVC controller Action with string parameter doesn't get called

So, I have a controller Action with this signature public ActionResult Details(string id) { ... } and a route in my global asax file routes.MapRoute( "DevDetails", "Dati/Device/Details/{id}", new { controller = "Device", action = "Details", id = "" }); If and only if I request urls ...