controller
Use Struts or Custom Controller
I am developing an Ajax-heavy application, where the user never navigates away from the same page. However, there is going to dozens of different kinds of calls to the server for data and I\'m confide[详细]
2023-03-30 07:14 分类:问答Is it good practice to have linq query in Controllers?
I\'m not very familiar with the MVC pattern. Could you tell me which one of the following three controller actions is better? Thanks :)[详细]
2023-03-29 22:07 分类:问答Base Controller
I have an ApplicationController that every controller in my application inherits. public abstract class ApplicationController : Controller[详细]
2023-03-29 22:02 分类:问答Rails noob question: rendering a view with a different layout
I did rails g controller World and created a new layout also called world. I now have app/views/world/index.html.erb. This is my WorldController:[详细]
2023-03-29 19:36 分类:问答JSON over POST with curl (to pylons)
I have a pylons con开发者_高级运维troller action that accepts POST @restrict(\'POST\') def myaction(self):[详细]
2023-03-29 18:55 分类:问答Zend Framework Controller with action as steps
I am working on a register controller to create a account. I send the user to a special url: www.name.com/activate/1/fdafdsafdasfdsa where 1 is a id en fdafdsafsda is a hash. I check these in the publ[详细]
2023-03-29 12:41 分类:问答How can I show a registration form that also display a list of cities and gender a user can choose?
This is my current model. The class is named exactly as my database table and I intend to use Entity Framework to get the information.[详细]
2023-03-29 07:06 分类:问答Access cookies from ASP .NET MVC 3 _Layout View
I\'m using a default _Layout.cshtml for my layout. Now, I would like to access the Request object, so I could read the Cookies collection, so I could see if user is logged in. How开发者_C百科 can I a[详细]
2023-03-29 01:00 分类:问答Is this the correct way to save form values in MVC3?
Here\'s my code: [HttpGet] public ActionResult Register() { RegisterViewModel model = new RegisterViewModel();[详细]
2023-03-28 23:58 分类:问答ASP.Net MVC 3 - instantiate data context class in BaseController
When adding a controller in ASP.Net MVC 3 using \"Controller with Read/Write actions and views, using EntityFramework\" as template, it generates a class as follows:[详细]
2023-03-28 23:45 分类:问答