When we have anything that requires user input (Eg adding a product to a database) the Edit screen looks the same as the add screen. When using MVC .Net how do you handle this? Do you return the same view? Just adjust the model to reflect the change?
Facebook IFrame Application issues for certain users
1:programmatically logout a “specific” user
Same (partial)viewYou create only one although strong typed view (depending on the UI it must of course be a partial view as well). Asp.net mvc html melperWhen adding new data return this view from controller action with default model object instance (usually just a new instance without any properties being set), although when you edit, return it with the object instance this you'd like to edit.. Proper way to build a data Repository in ASP.NET MVC
Controller partRegarding controller actions you must have four of them:. Why use TagBuilder instead of StringBuilder?
- Add GETDifference between HtmlTable and TagBuilder(“table”)
return View("SomeView", new Customer());
- Add POST
- Edit GETDetect whether or not a specific attribute was valid on the model
return View("SomeView", new CustomerRepository().GetCustomer(id));
- Edit POST