I am in the middle of a project where I am migrating some code for a website from WebForms to MVC - unfortunatly there's not enough time to do it all at once, so I will have to do some... not so pretty solutions.
I am though facing a problems with a custom control I have written that inherits from the standard GridView control
namespac...
Made solution change: I am trying to display a html table of data.. In my controller I start an object as null and then pass the object as a reference to update the object based on the info in the DB like so "user control named(Indexcontrol.ascx)":
List<dataob> data = null;
dataManager target = new dataManager();
...
Have you tried using MVC or any other UI pattern for GWT client code. What are the pitfalls/advantages you've faced in different approaches?
...
I am totally confused on how to do ajax stuffs with jQuery and it seems the more I try the more confused I get. At this point all I want to do is get data to my controller using jQuery ajax. Some code for my jquery ajax call is.
$(function() {
$('#buttonAddLink').click(function() {
var AjaxLink = {
title: $("#li...
I am currently playing around with the Asp.Net mvc framework and loving it compared to the classic asp.net way. One thing I am mooting is whether or not it is acceptable for a View to cause (indirectly) access to the database?
For example, I am using the controller to populate a custom data class with all the information I think the Vie...
I'm learning the Zend Framework and it uses a MVC model.
I still have not got my head around what MVC Model, View, Controller is.
What are the three different areas for and what would the program flow look like?
...
I am trying to start a new MVC project with tests and I thought the best way to go would have 2 databases. 1 for testing against and 1 for when I run the app and use it (also test really as it's not production yet).
For the test database I was thinking of putting create table scripts and fill data scripts within the test setup method an...
I'm currently working on a hobby project, written in Java, containing about two different JFrames with about 3-4 JPanels each. The problem I'm facing is that I'm not so sure how to handle the interaction with my controller and different view classes.
For instance, I've an article by Sun on Java App. design with MVC, where they list the ...
Hello Everyone,
I've been struggling for some time now with exactly how to recode a page-based php application I have to an MVC framework. (Just for background, I am having to move the app into MVC because my boss is making me :) Anyway, I've sat down and printed out the directory structure and started trying to plan how I can convert...
I am considering pre-loading routes to static content pages, allowing for n-depth nesting of content. I have a solution spiked that provides a bit of comfort in terms of the number of potential routes registered, but I'm wondering if I'm making the system overly complex.
At what number of registered routes do you suspect a basic hosting...
Background
We are a TDD team who have inherited a legacy ASP.NET application and are trying to bring it under control by separating presentation, business and data access concerns and thereby improving testability. We have had some success using an MVP pattern for newly added pages but are investigating the MS MVC framework to see if it...
I am trying to learn CakePHP. I'm having trouble understanding the concept of MVC. Does anyone have any advice for me?
...
For Example:
Let's say that I want to return a view that displays a list of cars and also show a section of dealers in your area. These are two disjointed pieces of data.
My view inherits a list of cars like the following:
public partial class CarLot : ViewPage<List<Cars>>
{
}
Now from the controller I can return the view like the ...
I have been using Zend Framework in a MVC configuration, read about ruby on rails and plan de check other MVC frameworks in Python(Django?)... i really like the way it isolates some parts of the logic, security and validation. But after just 1 year using it i read an answer here saying almost everyone have wrong definition of MVC and tha...
update: I know there is no one best way to do everything. Sorry for not saying that right off. In the context of the data-access tutorials, if you had to do the project he did in that tutorial, would you do what he did or would use use MVC, if you had to choose one of them?
Thanks.
update: Is MVC the more approriate way to program a...
I am confused as to when to create object instances or Static Helper classes. For example, if I call a method to update a data model and submit to database, i create an instance of the DataContext. What is the lifetime of that Datacontext and is it ok to create new instances every time there needs to be a new data updates?
In my contro...
Of late, I've been hearing many good things about functional programming languages such as F#. Additionally [and unrelated], I'm also noticing MVC is starting to get a lot of exposure - perhaps since the introduction of Silverlight/WPF.
I've never been one for jumping on a bandwagon without first doing my research - in fact it took me ...
I know this is probably really obvious, but I cannot figure out why I cannot pass a string argument to a controller like one would an int.
e.g.
//controller/action/2
public ActionResult Action(int someInt)
{
//somenumber != null
}
but when i pass a string in like this...
//controller/Action/x9294kskw
public ActionResult Action(strin...
I am using a Cairngorm MVC architecture for my current project.
I have several commands which use the same type of function that returns a value. I would like to have this function in one place, and reuse it, rather than duplicate the code in each command. What is the best way to do this?
...
Could anyone can tell me where I can find full ASP.NET MVC beta documentation?
...