mvc

MVC: View and Model Interaction Regarding Data Access, etc

Should the model just be data structures? Where do the services (data access, business logic) sit in MVC? Lets assume I have a view that shows a list of customer orders. I have a controller class that handles the clicks on the view controls (buttons, etc). Should the controller kick off the data access code? Think button click, reloa...

MVC and OpenID Redirection Problems

When I get AuthenticationStatus.Authenticated (DotNetOpenId library) response from myopenid provider, i'd like to redirect user from login page to another one using MVC Redirect(myurl). But unfortunately, instead of getting to myurl, user is redirected to empty page: myurl?token=AWSe9PSLwx0RnymcW0q.... (+ several kilobytes of myopenid-s...

ASP.NET MVC Question - Form Posting, Partials & Efficiency

Hi There, (My first question, so hello all!) I am using C# and the ASP.NET MVC Framework Beta 1 and was wondering if this was the most efficient way to achieve two, form posting scenarios using a single partial and also how to get the edit mode working. The partial contains my html form code so it can be recycled in both an add and edit...

MVC Javascript error

I have configured my default page to be say "abcd.aspx" and is under ~/View//abcd.aspx and I have my javascripts under ~/Contents/Scripts/.js For some reason, only "../Content/Scripts/.js" works for including the js file on the page and "~/Contents/Scripts/.js" does not. This works only when i access the page with the full url: http:///...

ASP.NET MVC: How to Route Search Term with . (Period) at the end

I get a 404 response from .Net MVC when I try to make a request where my search term ends with a . (period). This is the route that I'm using: routes.MapRoute( "Json", "Remote.mvc/{action}/{searchTerm}/{count}", new { controller="Remote", count=10} ); The search works fine wi...

Best Open Source MVC PHP project to study

Hello, Do you know some good Open Source project written in PHP that is a finest example of MVC and is just the best example to learn how to write a state of art project? kind regards, ...

MVC Frameworks for WPF

Are there any MVC frameworks available for WPF other than Caliburn (which looks awesome btw)? ...

Is .NET MVC must learn technology?

Is it here to stay, or is this something just pushed out quickly as a "me too" offering, in response to the Rails community? Is it necessary to go through the learning curve, and will the Framework move to only working this way, without the Page behind model? If so where's the best place to pick up MVC essentials for .NET? ...

How are the classes in the Sketch example AppKit application separated into Models/Views/Controllers?

I am a little confused as to the definition of classes as Models or Views in the Sketch example AppKit application (found at /Developer/Examples/AppKit/Sketch). The classes SKTRectangle, SKTCircle etc. are considered Model classes but they have drawing code. I am under the impression that Models should be free of any view/drawing code....

How can I create an array of a particular model? [PHP MVC]

Well I'm new to MVC and am trying to write a site in it. The site is a basic flash games site and has categories to track the games. My first step was to create a basic MVC setup and list all the categories. The problem is I don't know how to create an array with all of the categories in it. Can I add this to the controller? Should ...

Probs with ASP.NET MVC Postback + Callback Synchronously

Hi Guys, I am trying to create an upload control for ASP.NET MVC with jQuery progress bar. In ASP.NET the implementation works no problems, but in MVC the problem is that the server doesn't respond to my callbacks until the file is uploaded. The upload control is based on html file upload element, and I cannot for the life of me, under...

entity framework and asp.net mvc

i search a good tutorial to learn how to use entity framework in the right manner. in particular with asp.net mvc. Thanks in advance. ...

Looking for a good source for learning ASP.NET MVC

I've been working with ASP.NET MVC for the last few weeks, learning as I go, from tutorials and mostly trial and error. I'm sorta groping in the dark, since I have no other experience with MVC frameworks and I'm just moving ahead blindly trying to figure things out as I move along. So, I'm looking for better, more organized source ...

What are the alternatives to JSTL?

Are there any alternatives to JSTL? One company I worked for 3 years ago used JSTL and custom tag libraries to separate presentation from logic. Front-end developers used EL to do complex presentation logic, generate layouts in JSP pages and it worked out great. Perhaps new technologies have come out. Anything better these days? ...

ASP.NET MVC Ajax.ActionLink with Image

Hi Everyone, is there anyway to have an image act as an ajax actionlink? I can only get it to work using text. Thanks for your help! ...

What are some web applications worth coding for experience?

Lately i got into web development (in asp.net mvc), and i'm looking for some ideas web application ideas worth coding, preferably in an increasing difficulty level. my first app (which i'm currently coding) is a photo gallery web site ...

MS MVC Preview 2 and .NET 3.5 sp1

I have a site built with MVC Preview 2 and have not got around to upgrading to latest release, mainly because of the number of changes required and I have not had time. Anyway, last night my host installed .NET 3.5 sp1 and it killed my site. It is an identified problem (thats what you get for using pre betas) on this site http://haacked....

Spring MVC

i have a SimpleFormController, the doSubmit() is doing nothing but populating a command object(call it bar, a simple POJO, and it have a field, say id). So, the successView is being called. the successView is "redirect:/foo.html", and the bean def for foo.html is: i have this bean mapped to a simple jsp, called foo.jsp. the jsp come...

Zend_Paginator blurring MVC lines

I'm working on a Zend Framework (1.7) project with a structure loosely based on the structure of the quickstart application - front controller, action controllers, views & models that use Zend_Db_Table to get to the database. One of my main models relies on some expensive joins to pull up its primary listing, so I'm looking into using Z...

Can MVC (or MVP) co-exist with SOA?

I think that business logic should exist in a model when using an MVC or MVP design pattern, but should be hidden behind a service in a service-oriented architecture. Can a software system use the MVC or MVP design pattern within a service-oriented architecture? If so, where does the model sit? ...