The following code populates a second dropdown when the first dropdown changes (i.e. cascading dropdowns). However, the Ajax call isn't firing, and I can't figure out why. I'm not getting any syntax or runtime errors. When in debug mode, the GetPlans action is never being called. The inner alert is never called, but the outer one is. To ...
I am trying to implement the MVP pattern for WINFORMS. Its a simple for with a button and a Grid, on button click, the grid will load, and user can fill in values into the grid.
For my button click event, I have something like this:
_presenter.LoadGrid();
Which is simple and straightforward.
My question is, in regards to grid...
I am...
Hi, I would do something similar to this in PHP:
http://mysite.com/en/museum/gallery/garden
http://mysite.com/es/museo/galeria/jardin
It's possible? How can I route the controllers / views using multiple languages?
I was wondering if it could be possible with gettext, translating the url automatically, depending on the selected lang...
I would like to let a user select the back ground colour for a website and save the selected colour in a database. When the person logs in the background correct colour will be displayed.
Based on the following website, I am able to set the colour within the CssHandler.ashx. But, I'm not sure the best way to get the information from the...
This have puzzled me for a while, I would like to know why -from a programmer point of view- I should take the time to learn MVC and where do I need it, and I am not talking about theoretical models, I am asking how can MVC make my life easier and where?
...
Hi
I am finding that a common breakage point in our mvc setup is when the controller returns
return View();
or whatever, and the viewengine cannot find the view.
I would like to be able to test my controllers and then run ExecuteResult on the resulting ViewResult but the underlying ViewEngine is so tied to virtual directories that...
The Stack Overflow guys themselves on the Podcast mention how MVC is the new hot thing; .Net (presumably 4.0 will have it standard), Rails, & Django.
But I want to know what is the big deal.
It reminds me of asp/jsp from 2000 - interspersing lots of Request and Response commands with HTML.
And I don't see why actually writing SQL in...
I have a field in my model - call it 'distance' - and I want to write a view that contains both a checkbox and a textbox.
If the checkbox is checked, the textbox becomes disabled and 'distance' gets the value 0 when the form is submitted.
If the checkbox is not checked, 'distance' gets whatever value is in the textbox when the form is...
My controllers turn over the request to the appropriate service. The Service then makes calls to various Repositories. Repositories use Linq to Sql Entities purely for DataAccess and then map and return as Domain Objects. The service then decides what the Controller will present and replaces the DO with Presentation objects which are ret...
Should a Presentation Layer be split into presenting and receiving objects Or single objects that handle data in both directions?
...
This error message is driving me nuts.
I'm getting it when using Html.ListBox and Html.DropDownList HtmlHelpers with ASP.NET MVC v1.0. Populating the lists works OK - I can view them, etc - but when I go to create a new record in the Model using the FormCollection passed into the Controller to get the selected value, this error occurs. ...
I have an "Edit" action and an "Edit" view to allow users to update a certain entity in the database.
It's database type is "XML", and the DataContext (I'm using Linq-to-SQL) represents it as a property of type "XElement".
In my view, I render a text-area from the "ToString()" output of the propery like this:
<%= Html.TextArea("Text",...
Hi all,
I would really appreciate some feedback on what I am trying to achieve:
The problem:
I would like to authorize a user of my application to a single action on the controller. For e.g.: a user can perform the "save" action on my controller class if he has the required authorization.
In the project I am working on, the creation ...
So, I have a footer which will appear on every page of my web application
I need it to render dynamic data so.... this means that every controller action needs to return viewData which contains this data.. as well as the action specific data
How would you guys implement this? The constructor of a base controller perhaps?
...
Howdy.
I'm developing a webapp that allows the editing of records. There is a possibility that two users could be working on the same screen at a time and I want to minimise the damage done, if they both click save.
If User1 requests the page and then makes changes to the Address, Telephone and Contact Details, but before he clicks Sav...
I've been working with asp.net MVC and am still not very good at it. However, I have started wondering how would I go about creating applications that can be "plugged" or installed into an existing ASP.net MVC site with minimal complexity.
For example, in ASP.net web forms I developed a sort of Blogging app. In order to install this ap...
I wish to learn the MVC paradigm and apply it to GUI development (in C#.NET, at least at first, but I think I'd like to apply it elsewhere too). Pretty much every tutorial I've seen so far assumes that if you are thinking MVC, you must be doing web development, and they examine MVC solely from within a web context. I don't give a hoot ...
I read Fowlers description of Anemic Domain and I believe I have those symptoms. I have several objects doing nothing but passing data around in different packages. I also have several Services that pretty much handle all the behavior (executive functioning). I am starting to lose track of why and what i did and where to find certain tas...
I'm a bit of an MVC newbie, so you'll have to forgive what I imagine is an elementary question.
I created a custom viewmodel in order to have a multiselect list in my form:
public class CustomerFormViewModel
{
public Customer Customer { get; private set; }
public MultiSelectList CustomerType { get; private set; }
public Cu...
I'm working on a new project where I want to use Phil Haack Areas (1) idea + Steve Sanderson's tweak (2). I have a simple root view with an action link to a view an area (Foo). The URL that is generated has the proper area, but it appends the root controller (Bar) at the end. Here's my root view code:
<asp:Content ID="Content2" Conte...