Does anyone know of any examples or tutorials of an MVC view that shows parent/child data all on one form, and allows all the child records to be editable?
For example, say I have a table of people and another containing the vehicles they own. One one form, I want to show every vehicle for a given person, and make the data elements edit...
I have a Server application with a GUI. Written in c#.
Now I want to use the MVC pattern for the whole Application.
Normally you have 1 Model, 1 Controller and maybe n views. Okay, I have one of everything, but I'm not sure with the Model.
My Situation:
There are 1 server state, that can be online / offline, that has a client count, et...
Normally I have one controller and one model. Is there a disgn-pattern to have 1 View with multiple Controllers and multiple Models. Where very controller can have multiple models, too?
Some links to related patterns would be nice.
...
Lets say we have an Edit View to edit our data, and we want to let the user know the result of their edit ie. to confirm that it was indeed saved successfully on the Model.
One solution is to assign a message to ViewData in the Edit Controller action method, and then use the View to display the message back to the user.
e.g. In the Edi...
Q: How do I calculate the total time it takes to render an MVC page and display the time on the master page.
In Asp.net Web Form I created a Base page class like so:
public class PageBase : System.Web.UI.Page
{
private DateTime startTime = DateTime.Now;
private TimeSpan renderTime;
public DateTime StartTime
{
...
Hi
I have little problem. I can't use AcceptVerb.Get on some ASP.NET MVC actions because when I use $.get(..) IE sends POST instead of GET. Why???
Please help :)
edit:
Forget to add that Firefox work as I want - the same code in Firefox performs GET.
...
I am running an issue, could you help me out with your knowledge..?
Basically, this autocomplete extension of jQuery depends onto the ready method of the jQueryLibrary. (I am not 100% sure what it does actually, but I can guess it checks wheather the DOM has been loaded, if loaded it does something as an regular "onload" event handler)....
I'm looking for a C++ MVC framework. Has anyone used http://www.tntnet.org/index.html?
How was it compared with like MVC.net or SpringMVC?
What compiler is required for it?
...
Continuing from this question, I've got a form with all the Vehicles listed for a Person, the vehicle fields are editable, and they are now successfully posting back to my Save action.
Now I'd like to use UpdateModel to save the data, but I'm not sure how to construct it. Here's my Save action right now:
<ActionName("Edit"), AcceptVerb...
I've been analyzing my next project and writing up requirements, one of the things I'd like to do involves me communicating over 64 serial ports (16 ports x 4 windows pc's)
The best was I can think to do this is a master/slave application model where the master application is controlled by an operator and the slaves simply execute comma...
Hi,
I am just starting on ASP.NET MVC trying to understand the philosophy first. I think I am pretty clear on the roles played by the controller and the view but I am a little confused on the model part. Some sources say its the domain model, some say its the data model, some say its the objects that are bound to the view.
IMHO these a...
I try to be as RESTful as possible in building applications but one thing that I'm never sure about is how to create a wizard-type work flow, be RESTful and concise.
Take, for example, a multi-page sign-up process.
Option 1: I can create a controller for each step and call new or edit when user gets to that step (or back to it). I ...
Hey guys,
Does the project - http://www.codeplex.com/MvcMembership - work with the latest release of RC 1.0 ?
Does anyone know whether its been upgraded or ? i.e. seems the source hasn't been upgraded in a while and I thought it was being actively developed?
Just wondering if anyone has implemented it, got it working - cares to update...
I was wondering if any of you have experiences to share after using the Akelos PHP framework. Looks like the most Rails-like framework in the PHP space.
...
Hello everybody,
I want to build something very similar to the "Ask Question" form in stackoverflow,
making some tag fields being added to my event model dynamically.
But I'm very new to MVC and I don't even imagine how to do that, can you provide me an
example or a tutorial?
Thank you, Felipe.
...
Hi,
I am new to MVC pattern, trying to get Userid stored in cookies via common controller file, which I can access throughout the site.
I have FunctionsController as a controller with content as follows.
public static int loggedinUser()
{
return Convert.ToInt32( request.Cookies["userid"].Value);
}
I am unable to request any...
I've made the changes outlined at http://stackoverflow.com/questions/108813/404-http-error-handler-in-aspnet-mvc-rc-5 and I'm still getting the standard 404 error page. Do I need to change something in IIS?
...
The basic client-server model (even when implemented using questionable interfaces) had a presentation layer, a business layer, and a data layer. Are the directory and discovery methods using webservices models considered a entirely new layer? I would argue that the discovery layer is actually just expanding the role of the data layer ...
I've got an existing web site that monitors an SVN repository for changes and when there is a check in, the new web site is built using aspnet_compiler and then a diff of what is on the production site is sftp'd up to a production web server. The entire continuous integration process is built using cruisecontrol.net.
I've refactored the...
In the application I'm building, I have a concept of a User.
In the app, users have profile pages.
These are pretty simple. They are basically just like /profile?id=3 or whatever, where 3 is the user id of the user whose profile I want to see.
Does it make sense to add a url_for_profile method to the User model, or should I make a vi...