asp.net-mvc-controller
How to return an error to ValidationSummry in MVC 3
I have an idea which I dont know how to implement. In MVC 3 controller I have an if statement, and I want t开发者_开发百科he controller to return an error message if the if statement fails. And I have[详细]
2023-03-14 01:52 分类:问答How to render XML data from controller to view efficiently
I am working on a project that requires that I render XML data (that would be my model).Its basically going to be represented in a row - column format similar to your standard database representation.[详细]
2023-03-10 00:41 分类:问答MVC3 – ViewModels and controller functionalty: suggested design patterns
I have built a simple MVC3-based ticket entry site for a less-than-usable call center application and am attempting to refactor my prototype to better adhere to design patterns partly to make it more[详细]
2023-03-03 14:16 分类:问答Lots of hidden divs to display in an ASP.NET MVC page with jQuery dialogs. Should I use partial views?
I\'ve been working on my first major ASP.NET MVC application (plus lots of jQuery) for a month or so now and I\'m pretty happy with it. I have a page that looks something like this. (Actual data chang[详细]
2023-02-22 12:56 分类:问答allow hyphens in URLs for asp.net mvc 2 controller names
[ActionName(\"about-us\")] public ActionResult EditDetails(int id) { // your code } The above works for actions but I would like to be able to do the same (or similar) for con开发者_如何学JAVAtrolle[详细]
2023-02-16 04:27 分类:问答keeping asp.net mvc controller size down
I have a Controller. \"OrderController\". Currently it\'s 1800 lines. I like to reduce the size. I\'m using static helper methods which is fine but i\'m using ninject to call my repositories so don\'t[详细]
2023-02-14 15:48 分类:问答MVC 3 AJAX Function Post Two Times
I am using Visual Studio 2010 and MVC 3 with AJAX/JQuery. The issue I am having is that the code is posting something twice.It only happens when you post something, then do it again.[详细]
2023-02-13 16:09 分类:问答MVC Unit Testing Controller Method with FormCollection argument
I am having a controller method which accepts FormCollection as a parameter. the controller method then builds the model using UpdateModel(Model, new[] { P1, P2 });[详细]
2023-02-01 18:10 分类:问答Setting an alternate controller folder location in ASP.NET MVC
We can an MVC app that uses the default folder conventions for the HTML views, but we\'d like to set up alternate \"Services\" folder with controllers used only for web services returning xml or json.[详细]
2023-01-28 23:48 分类:问答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[详细]
2023-01-15 06:39 分类:问答