asp.net-mvc-3
How do I redirect to a page with an ID that doesn't exist yet?
Basically put, I have an action that saves a form to a database, then redirects the user to a list. From this list, the user can select a few actions.[详细]
2023-04-13 01:56 分类:问答Assert on something which may not be there - nullreferenceexception
Using nUnit.result is a ViewResult coming back from an MVC3 controller - it may or may not be there. This works, but smells!Is there a better way?[详细]
2023-04-13 01:46 分类:问答How to access ViewData from HttpContext? (ASP.Net MVC)
I don\'t if this is the right approach, but correct the question if necessary. I need to access an object through the full page life-cycle that I want t开发者_如何转开发o create just once. I thought[详细]
2023-04-13 01:43 分类:问答Action Controller finishes but AJAX success callback is not called?
I have a script that creates a JSON object and sends it to my Action Controller. The ActionController recieves the object and knows how to modelbind it to a ViewModel.[详细]
2023-04-13 00:51 分类:问答how can to instruct entity framework not to update a property of a model
I am using Asp.net MVC and Entity framework(Below code is just for demo) I have a model like below public class Person[详细]
2023-04-13 00:48 分类:问答Can I populate a ContentPlaceHolder in a master page from within a Razor Partial View?
I\'m using the typical built in view engine in mvc3 (is there a proper name for it?) for views and master pages and it\'s including a Razor partial view on the .aspx page.In the masterpage, there is a[详细]
2023-04-13 00:33 分类:问答Where does the MVC3 default template store user-account information?
Can you tell me where the asp.net mvc3 default template stores the login information when I register a new account? It is running local in debug mode.[详细]
2023-04-13 00:18 分类:问答How do I render HTML from the Viewbag using MVC3 Razor
I am trying to pass a form element into an MVC3 view by using the Viewbag and simply write the HTML to the page ...[详细]
2023-04-13 00:02 分类:问答MVC 3 - controller being called more than once
I am finding that my controllers are being called more than once. When I am in debug mode, the paths execute, the UI is rendered, but then the controller break points get hit up to 3 times.[详细]
2023-04-13 00:00 分类:问答How to tell if the MicrosoftAjax javascript library is not being used?
I\'ve got the following scripts in an MVC3 application, but I\'m thinking that they aren\'t being used, just referenced. Is there an easy way to tell if they are being used somewhere within the markup[详细]
2023-04-12 23:55 分类:问答