I'm working on building up an interface that I want to function as a "tabbed browsing" sort of function. Each of these tabs has already been written as an action and the tabbed interface works fine as links to the individual tabs. I decided to try writing the "index" page for this controller - putting the content of all the tabs into h...
What kind of naming convention is appropriate for ViewModel classes?
Example: for HomeController, Index view? HomeIndexViewData doesn't seem right.
...
How would you push strongly typed information in MVC to the master page? Would you have a ViewModelBase class that contains master page information and inherit from it for every view model, or is there a better approach?
Thanks :)
...
I have an extension method to HtmlHelper:
<%= Html.MyMethod( params )%>
It works in visual studio, but throws (at runtime):
Compiler Error Message: CS0117: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'MyMethod'
The odd bit is that this does work:
<%= HtmlHelperExtensions.MyMethod( Html, params ) %>
Why does ...
ActionLinks
This Image shows type-safe method of defining the Actionlinks ,how to define it in VB.NET
...
a little background info first. I have been using Web Forms for most of my career and have recently become interested in .NET MVC. I realize that it is intended to be stateless, however, i dont understand how it is completely feasible. In a forms application, the user authenticates and I return a user ID and some roles which are then pla...
Is there an existing good example, or how should one approach creating a basic Template system (thinking MVC) that supports "Template Inheritance" in PHP5?
For an example of what I define as Template Inheritance, refer to the Django (a Python framework for web development) Templates documentation: http://docs.djangoproject.com/en/dev/to...
Hi,
I'm starting to write quite a few ajax heavy website, but I've never really read up on best practices and now that I want too I can't find an article that address what I want to know. What I really want to learn about is dealing with AJAX calls server side, things such as, should all data be passed back using JSON/XML,.. or is pure...
The more I work with and read about ASP.NET MVC, it seems as though the "M" or Model is a topic that seems to cause a significant amount of confusion.
Should the MVC framework really be renamed to Adapter View Controller? Where the Adapter is responsible for delivering data models to the view?
...
I have my own hand-rolled PHP MVC framework for some projects that I'm working on. When I first created the framework, it was in the context of building an admin CMS. Therefore, there was a very nice one-to-one relationship between model, view, and controller. You have a single row in the DB, which maps to a single model. The controller ...
Hi,
I have the following route
routes.MapRoute(
"Segnalazioni_CercaSegnalazioni",
"Segnalazioni/CercaSegnalazioni/{flag}",
new { controller = "Segnalazioni", action = "CercaSegnalazioni", flag = 7 }
);
that maps to the following methon of the class SegnalazioniController:
public...
My MVC application contains a parent model, which will contain 1 or more child models.
I have set up the main view to display properties from the parent model, and then loop through a collection of my child models (of various types, but all inheriting from the same base type). Each of the child models have a corresponding partial view....
Hey all, I'm facing a really strange problem that has me smoked.
I have a fairly simple scenario where I have a strongly typed view that is correctly populated from the controller on the GET, but then when it POSTS the form to the controller, the Reqeust is full of all the right values and right key names for the default model binder ...
I would like to create a Facebook style “whats new” view for my asp.net mvc application.
This might generate content such as...
* Ciaran sent a message to The Rise and Fall of the Rockets
* Rick is going to Songs for the bathtub on Thursday, 28 June 2009
* Col became a fan of The Rise and Fall of the Rockets
* Leeroy posted Busk To Bea...
Imagine I have a list of objects that implement an interface called ISummary
The objects within this list MAY have additional properties ie.
public interface ISummary {
Guid Id {get;set;}
string Title {get;set;}
DateTime Created {get;set;}
}
public class GigSummary: ISummary {
Guid Id {get;set;}
string Title {get;set;}
DateTim...
I am looking to build a new website which will require a sql server backend and silverlight front end. I would also like to take advantage of the MVC framework. I currently code in C#, but am looking to learn a new type of language on this project. I've been reading up on F#, IronRuby and IronPython. IronPython seems to catch my eye ...
How to create a rich user interface Windows application, example Photo Shop.
I am looking for clean MVC tutorial for WinForms with C# somewhere. (Not ASP.NET MVC.)
Being new on the Windows Platform; most MSDN and internet tutorials basically puts everything into the Form class. Further Default events are handled inside of the form, ins...
I recently completed a project for a custom report UI in Flex. Now, I've been tasked with creating a new application that is essentially a "lite" version of the original UI. It will include only a few of the options that are in the original application. Also, it needs to be a separate application.
I do not want to duplicate my code, so ...
I have created a few Event and Command classes for use in my Cairngorm projects.
For example, I created an class that extends com.adobe.cairngorm.control.CairngormEvent that allows me to set callback functions upon completion or failure of the corresponding Command. To accomplish this, I also had to create a new Class that implements co...
Which DataAnnotation attribute can I use to instruct the silverlight data form not to show that field?
...