mvc

ASP.Net MVC V1.00 Installation Failure

Tried to install ASP.Net MVC but the install keeps rolling back. I Googled this and followed the advice found but there are no add-ins, have the latest hot-fixes and so forth. Using Vista, .NET 3.5 SP1 and VS2008. Even downloaded the MS Web Platform installer and this installed everything except ASP.Net MVC! Any idea would be appreciate...

Anyone else using DB-Schema-Validation for MVC projects?

Ok, inspired in part by CakePHP's Model Validation I created a project which uses a separate database schema file. I didn't like that in CakePHP the model file and the db-schema are combined in the same php file. I like having them separate. All of my sql updates, inserts, and deletes are first passed by this schema. I wrote update() in...

How do I pass a datetime value as a URI parameter in asp.net mvc?

I need to have an action parameter that has a datetime value? Is there a standard way to do this? I need to have something like: mysite/Controller/Action/21-9-2009 10:20 but I'm only succeeding indoing it with something like: mysite/Controller/Action/200909211020 and writing a custome function to deal with this format. Again, lo...

Add OnClick Event to Html.RadioButton

What I want to do is to call a JavaScript routine when the user clicks on a radiobutton. I've some fields to enable/disable when this happens. However, when I enter <%=Html.RadioButton("obp17", "57", ViewData.Eval("obpValue17").ToString().Equals("57"), new {@onclick = "Yes()"})%> I'm getting a "type or with" expected error when tr...

What is ASP.NET MVC not good for?

I'm a big fan of what ASP.NET MVC is doing, on many levels. I'm about to take part in re-build of a very highly trafficked website, and I'm not which framework would be best (if any). The site will need the following: To support Javascript-heavy, highly interactive pages But at the same time, provide underlying semantic HTML for sear...

ASP.NET MVC website where users can add/remove pages

I'm developing a website for a client, in which they want to be able to manage content and add/remove pages. At the same time, some pages on the site will be interactive and provide custom reports for logged-in customers. I've started developing the site in ASP.NET MVC, because I wanted full control over rendering. However, I'm findin...

How to page multiple data sets in ASP.NET MVC

On a single view I will have three sets of paged data. Which means for each model I will have The Objects The Page Index The Page Size My initial thought was for example: public class PagedModel<T> where T:class { public IList<T> Objects { get; set; } public int ModelPageIndex { get; set; } public int ModelPageSize { ge...

MVC HTML Editor

Can you recommend an WYSIWYG HTML Editor that works well with ASP.NET MVC? Any experience of the retail version of Obout's HTML Editor? ...

UIView dissapears after modalViewController is removed from superview

Hello, in my app i have a tabBarController and in it a navigationController. One of my view controllers is a TableViewController and under the navigationBar i added a uiView as a subview to the view like this: rectangleInfo = [[UIView alloc] initWithFrame:CGRectMake(0,0,[[UIScreen mainScreen] applicationFrame].size.width,26)]; rectangle...

zend framework mvc model and generating dynamic reports

hi all, i am using zend framework to develop my php applications using mvc model. i want to generate some reports from database. but i dont know how to separate models and views in this case. i fetch information from db, then i should iterate through them and make a html table. then pass this table to a class, making pdf file from the...

Get controller and action descriptors for a url & parameters

Is it possible to use the MVC framework & reflection to get a controller and action descriptors for a url and a list of parameters? Basically I want to tap into 1) the logic to resolve a route and 2) the logic that determines which action signature matches the list of parameters coming from the client. Thanks. ...

Best Practice PHP MVC Question...

I'm creating a calendar application in PHP with CodeIgniter. In the main calendar page, My model currently creates an array with each index being one day on the current month. That day is an array containing any events the user may have on that day. Now, should I construct the calendar array in the controller FIRST, then pass it to the ...

In an MVC Context, Where Do I Put A Class?

straight to the point : I am using Kohana, and I am looking at another script written in plain PHP. In the script, I have a class ShoppingCart. If I am to convert the script to Kohana, where am I to put the class, its methods and its properties? Is it in my existing default controller? Or should I put it in a separate controller? Or a...

Struts, JSF like MVC framework in .Net

I am from J2EE background and recently started looking into .Net. I am wondering if .Net have Struts, JSF like MVC framework available? ...

What's your recommendation for architecting GWT applications? MVC, MVP or custom messaging solution?

Hello, I just started a new GWT project for a client and I'm interested in hearing people's experience with various GWT MVC architectures. On a recent project, I used both GXT MVC, as well as a custom messaging solution (based on Appcelerator's MQ). GXT MVC worked OK, but it seemed like overkill for GWT and was hard to make work with br...

Models and Validation in Multiple UI Delivery Mechanisms

I work with a small team. We have multiple delivery mechanisms, often for the same business models but different exposures. We need some help with our efficiencies sharing models and validation across our applications. What is the best mechanism to create consistent validation for our models, for both user experience and code reuse acro...

ViewUserControl and MVC

I'm dynamically adding ViewUserControls to a view. I pass a collection of virtual paths to the view and the view iterates through and renders each ViewUserControl using RenderControl(MVCToolKit). My question is, upon a POST, how do each of the ViewUserControls handle and get the data posted back? ...

Looping through a two-dimensional array in a asp.net MVC View.

Hi, My problem is as follows: I'm making a ranking board for my team. I've managed to get the data out of the database and I put it into a two-dimensional array. I sent it as model data to the view. Now I don't know how to loop through the two-dimensional array. Normally it would be something like this: For Each record in Model ... ...

Think of AJAX as Model-View-Controller?

I think about AJAX in this way: Model: The server-side where the data is stored and exposed through webservices. In a way this is a model-view-controller within the larger model-view-controller (model = data, view = XML or some other parsable data structure, controller = server-side code that manipulates the data). View: XHTML/DOM Con...

ASP.NET MVC C#: Bringing in data from multiple tables/queries into a view

Ok, I'm still getting the hang of asp.net and the MVC framework and converting my knowledge over from classic ASP and VB - so please be gentle. I've got my first view (/home/details/X) functioning well thanks to previous help pointing me in the right direction, now I need to add data from multiple tables and queries/views to the MVC vie...