Note: I'm not referring to any particular framework's interpretation of MVC
If I'm designing a rich client Silverlight application for instance, that involves a relatively complex UI behavior such as dragging and dropping rows between two GridViews populated by a dynamic user-defined query, would this be an appropriate pattern to use? ...
Hi everyone,
I'm using the Ajax.Actionlink from the MVC framework and everything works fine with my targets and partial views. However I've seen that the html output doesn't add the "id" attribute to the resulting tag.
Is there any way how I can add it?
Thanks in advance
...
The MVC pattern wants that Model dispatches change status events to View.
Which is the best implementation of this comunication if the Model is a simple javabean with setter and getter methods?
...
Can you recommend books to learn about PHP MVC please?
Thanks everyone.
...
Greetings all!
Looking for some help with MVC in a PHP context. Currently I am building a small, lightweight MVC framework to help expedite application development at work. It's a long hard separation eliminating inline code - at least with numerous projects looming overhead and the temptation to utilize it ever-present.
I understand...
My model has a property of "output" and my form has a TextBox named "output", both spelled exactly the same. When I fill out the form and post it, the returning view has unexpected results.
Specifically, I receive the posted "output" form variable which is then bound to my Model in the Controller Method, then I change this variable to ...
Is there any way I can pre-process a PHP view script without using a particular MVC framework?
Basically I want to render the view and pass it as an HTML string to another view. The view I'm trying to render has some references like $this->rows, and, of course, I would need to add the values of those references to the script before gen...
My MVC controller is in charge of passing desired onload javascript to my view object which inserts it into the bottom of my main page template.
My question is...should I store the actual onload js scripting in my controller, or should i store it in my model, and have the controller pull it from there?
My confusion is rooted in the fac...
I've created an MVC application and I've set up Roger Martin's sqlite Providers in place of the default Providers. I'm curious about how I would go about unit testing these.
Below is a stripped down method that has many validations, only one of which is still present. Among other things, I want to write tests that ensures one can't ...
Is JQuery more suited to MVC than WebForms or it doesn't matter?
I am planning to use JQuery heavily.
...
hi,
I have a Task object which has a property of Employee. Im trying to find the best possible way setting a validation to only allow the certain employees to access the task object. If the current context user (web/winforms) tries to instantiate the Task object the object should automatically validate itself and return a validation er...
Hi guys! I have been scouring for a while about this one but haven't seen a decent tutorial.
the problem is I want to create a hit counter everytime a product's page is viewed
I am using a PHP MVC framework and these are what I want to do
update a database counter everytime a page is visited
check if a the product is repeatedly viewe...
Does installing ASP.NET MVC require a server reboot?
I've set up quite a few ASP.NET MVC sites on production servers in my time, but today, I'm deploying to a server without MVC installed for the first time.
So, I installed the latest MVC release, restarted the IIS and went through the usual hoops to set up a MVC website on IIS6 (aspne...
What are the responsibilities of one vs the other?
What kind of logic should go in one vs the other?
Which one hits services and databases?
How do I decide if my code should go in the viewmodel or the controller?
For the record, I am using ASP MVC, but since the question is architectural, I do not believe it matters what language or fra...
I'm a .net programmer, but new to mvc.
I created a new mvc page with a simple form on it - 2 textboxes and a submit button.
Upon posting, it goes to my server side method, where the user info is entered into the db, and then I want to return the user to the same exact form but empty again.
When I use "return View("Index", new myIndexOb...
Where is the best place to validate data which will be used by model. For example, think about registration form. We have some data which come from registration form. So where is the best place to verify this data.We should check every data by if statements or special validator class, and this means lots of coding, so i want to learn whe...
hi i would like to ask for guidance on how to use membership in asp.net mvc. my system is to make somewhat like a profile for every logged in user. any guide or links is much appreciated
...
I have an HTMLHelper extension method that outputs HTML to Response.Write. How best to unit test this?
I'm considering mocking the HtmlHelper passed into the method, but am unsure as to how I should verify the HTML sent to Response.Write.
Thanks
...
When a controller detects that a DTO passed to it is null should it instantiate an instance of the DTO (cf the Null Object Pattern), or should it simply throw an exception there and then?
Thanks
...
I know this is going to be really simple once I post it,
I am writing a form, which has a select menu in it, I want the values to pulled from the database, so I thought it would be something along these lines,
My view
<?php
echo form_open('admin/save_content');
echo form_fieldset();
echo form_dropdown('categories', $select_o...