actionresult
MVC3 - Ajax loading icon
I would like to show an AJAX loading icon during an ActionResult request that can take a few seconds to process.[详细]
2023-03-14 23:08 分类:问答MVC2 Trying to pass multiple parameters to ActionResult based on textbox with dynamic name
I am trying to implement a quantity selector for the number of items added to a shopping cart. I have a textbox with a dynamic name for each row of items in the catalog.Each row has a \"Add to Cart\"[详细]
2023-03-14 07:51 分类:问答ASP.NET MVC 3 get HTML from viewmodel
I have a Controller with a method like this: public ActionResult Index() { CustomerInfoViewModel viewModel = CustomerInfoModel.Load();[详细]
2023-03-12 00:45 分类:问答Can I return an action result from an action filter?
Usually I am validating my model in the action method before committing data to the database. [HttpPost][详细]
2023-03-06 08:51 分类:问答Can my ControllerActionInvoker be a singleton?
It doesn\'t seem like ControllerActionInvoker has any implementation details that require a new instance to be created for each Controller.It seems to have two properties with setters that are never u[详细]
2023-02-18 03:03 分类:问答Combining actionresult and jsonresult
I want to do this: public ActionResult Details(int id) { Object ent = new{ prop1 = 1, prop2 = 2}; if (Request.AcceptTypes.Contains(\"application/json\"))[详细]
2023-02-13 05:13 分类:问答ASP.NET MVC ActionResult View() not changing url
I have a method... [HttpPost] public ActionResult Start(SomeViewModel someViewModel) { ... } that based on some conditions returns things开发者_运维技巧 like return View(\"Invalid\"), View(\"NotFou[详细]
2023-02-09 11:40 分类:问答Can I retrieve a ViewModel from an ActionResult?
Trying to avoid repetition here. I have an action in a base class controller which I am not allowed to modify. I\'d like my action to do some checks, call the base class action, and modify the result[详细]
2023-02-05 06:07 分类:问答How to add behavoirs to asp.net mvc 2 action result output
Lets say I have two controllers and two actions. Controller - > AController Action -> MethodA() . Controller - > BController[详细]
2023-02-01 11:25 分类:问答Bestpractice DI with ASP.NET MVC and StructureMap - How to inject dependencies in an ActionResult
I edited my whole question, so do not wonder :) Well, I want to have an ActionResult that takes domain model data and some additional parameters, i.e page index and page size for paging a list. It de[详细]
2023-01-18 02:15 分类:问答