Hi All,
I am trying to understand Asp.Net MVC with DDD following is the structure of application according to the http://aspnetdesignpatterns.codeplex.com/
Application Layers
Presentation Layer => MVC views,
Controllers(MVC) => MVC
Controllers class,
Cached Service => ?,
Application Service => ?,
...
There is a form: "dropdownlist", "available items listbox" and "selected items listbox", button: Add.
"dropdownlist" is filled with values. OnDropdownChange "available items listbox" is populated with the values taken from db (ajax request). User, using Add button, moves elements from "available items listbox" to "selected items listbox...
how can i check with jquery that an item is selected or not in listbox?
...
So here's a DateTime editor a la NerdDinner's /Views/Shared/EditorTemplates/DateTime.ascx:
%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.DateTime>" %>
<%: Html.TextBox("", String.Format("{0:yyyy-MM-dd HH:mm}", Model))%>
<script type="text/javascript">
$(function () {
$("#date").datepicker({ showOn:...
Hello,
I would to protect a whole website with a basic authentication or by Ip addresses.
But the website in asp mvc already use form authentication.
I mean protect the website with a basic auth then once connected use the normal form authentication + DB system.
I want to prevent people and robot acces a website version not yet finish...
Hi,
I've got an ASP.NET MVC 2 Web app in VS 2010 and decided to try using MS unit testing stuff. What do you know, on the first test I created it gives me grief and refuses to elaborate.
I have created a single test class and a single test method. I am using Moq to create a HttpContext (including Request, Response, Session, QueryString...
Im in the process of moving our website from a crappy CMS over to a nice custom coded MVC website. Everything has gone smoothly so far but I'm having some issues with routing.
Our company sends out a lot of marketing emails and letters. In these we have the user go to Landing Pages so we can track how campaigns are doing, as well as o...
I'm trying to create an iphone app which grabs a JSON string, parses it and displays a list of items in at table view.
I'm also attempting to use an Model-View-Controller (MVC) architecture for my project.
My question is in 2 parts:
1) How do I structure my different files to conform to this standard (MVC) ?
2) (more general) I've be...
We are trying to convert one of our J2ee web application to android application.
The idea is that android device will be kind of view layer of spring mvc. Basically the andoird application will invoke the controller on the server and the controller will respond with JSON to the android application. Kind of RESTfull way of doing it.
Quest...
I have a Triangle class. Each Triangle has three edges a, b, and c, and also three angles angleA, angleB, and angleC. In addition to the size (length or angle), each datum also stores whether it was entered by the user or was calculated based on geometric relationships to other data.
Corresponding to my Triangle class, I have a Triang...
Hi,
When working with Viewmodels from linq to sql I have an architectural problem.
When you have an object from your db (let's say "person"), and you load it in your viewmodel. After this in your view, when you try to acces referenced classes (let's say a person has children object which is a different table in db, and a different data...
Hi,
I have been tearing my hair out over this for about 3 hours, please can someone help?
Here is what I want to achieve...
On my home page I wish to have a sidebar widget/module which displays the latest 10 events from the events controller.
I started off trying to use the widget plugin, but could not get my head around it -[url=htt...
Here is something I just can't get to work....I can make the view controller talk to my custom objects just fine....but how do I send messages to the View Controller from my objects?
A message from myViewController to myObject would look like
[myObject doSomething].
What would the opposite message look like? Does it even make sense to...
Say I have a Companies table which has a many-many relationship with an Employees table.
I have an add/edit Companies page, but I also want to be able to find/add new/existing Employees as well, without having to open up another CRUD page for each Employee first.
I'll be inputting an English name and a Japanese name for each Employee, ...
If i got a list of checkbox in a View, and this list came from Enum (flags). If my checkbox as all the same name, did my controller will update automaticly my Enum (flags) values in my ViewModel with multiple selection ?
Suppose i get in my View
<% foreach (var t in Enum.GetValues(typeof(FoodType)))
{
Respons...
I am currently working on a .net MVC solution where the model is basically built up from several entities that are defined in an EDMX.
The problem that I have is that if a user does not enter a value for a non nullable value (in this case a decimal) the null value can't be identified as we can't put null in the model. I know you can ...
Hi,
Is it correct to use one view file with say 2 functions inside it.
For example I have project table in my database and I have 2 functions inside the view file for this specific MySQL query.
Each query returns a specific view so say
function 1 = num_rows
function 2 = data inside the rows
Would this be correct or should I do s...
I'd like to implement the MVC pattern in a difficult situation. The difficulty is that my Models (the entities generating the events) are long-lived, while the Views (the receivers of the events) are short-lived. My problem is that through the connection between the two, the long-lived Models keep my short lived Views alive, i.e. they ca...
hi everyone,
i m developing an application in asp.net 3.5 using mvc2. i want to implement facebook like notification system based on server push or comet. i have no idea where and what to start with. i have read about Pokein but don't know how to integrate it with mvc. any suggestions are held highly
thanks
Adeel
...
I have just started looking into .net MVC and I really like it.
There are a few developers within our team who think the same. But before we are alowed to use it for any project we need to get the approval of management.
What would be the best way to convince management(which know little about programming) that this would worth while an...