Should the Model that will be passed to the view be completely defined by a single call to a single repository. In other words, is the Model a single Aggregate, or should my Model be constructed from separate Aggregates, each with its own Repository, in the service layer?
The way I have it now, is I simply call a single repository to fi...
The example I see everywhere for MVC-style routing is something like this:
void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add(new Route
(
"Category/{action}/{categoryName}"
, new CategoryRouteHand...
My project details are as follows,
Project Type : WCF client project
Technology : ASP.NET MVC
I am getting data from WCF service in the form of List<SomeInterface>, and the method for example "GetAllMessages(int ServiceChannel)" or the Interface "SomeInterface", doesn't expose PageSize,PageNumber.
I am not using Model,as the data i...
I am starting a new ASP.Net MVC project and was wondering what is the best Model approach to take.
Most demos recommend LinqToSQL but I know Microsoft are not really enhancing this product and are focusing more on the Entity Framework.
I like the Subsonic approach but I thought this was going to be built in with MVC with version 3 bu...
Related:
Practical Application of MVC || When
to use, or not use MVC
I've recently walked through the entire NerdDinner pdf and sample with the final ASP.NEt MVC build and am thoroughly impressed. Before I start touting it's awesomeness through within our dev group, I'd like to also know what some of the pitfalls or misuses of th...
Hi,
Is it possible to put ASp.NET tags in my javascript which is in a seperate script file. For example, I have the following
$.getJSON("/Postcode/GetAddressResults/" + $get("SearchPostcode").value, null, function(data) {
which I want to turn into but it does not like the ASP tags!
var action = "<%=Url.Content('~/Postcode/GetAddr...
Is there any advantage to using Django instead of ASP.NET MVC other than I might not want to use Windows and IIS?
I don't mean this as a religious type debate. I honestly don't know of any reasons other than personal preference but want to confirm this. For example, I might have only Microsoft products and be well versed in asp.net an...
I am looking for a way to have a script run every day at 5am to delete the contents of a Temp folder. The following is the method I am considering. I would appreciate any thoughts on this or suggestions for other methods. I want to keep everything local, so that there are no external dependencies from outside my account on Discount AS...
I'm rewriting an in-house client-server application as a .NET MVC application. It needs to send and receive files via secure FTP. The original application was client-server and used MOVEit Freely to do SFTP. Is there a library or product I can use to do it from within .NET?
...
Scott says we need these 3 DLLs in our BIN folder:
1 - System.Web.Abstractions.dll,
2 - System.Web.Mvc.dll, and
3 - System.Web.Routing.dll
I installed the AspNetMVC1.msi on Windows 2008 x64 and found this file but the others seem to be missing in action. Any ideas?
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\S...
I have an application that has two dependent dropdown lists, where if the user selects a value in list box A, it updates the available set of inputs in list box B. Such as make/model of a car. when the user selects the manufacturer, the list of models would update accordingly.
In winforms, this would just be handled in the autopost back...
Howdy,
Im building an application in ASP.NET MVC that has a workflow component.
Im looking for something/ideas for displaying the underlying workflow data as a flowchart.
Im NOT looking for a flowcharting tool, but something that displays data as a flowchart.
Does anyone have some experience with this that could offer their wisdom?
...
Typically, in sites that allow membership, you want to offer your users a bit of data that is only visible when they're logged in.
For my site, if the logged in user is the data owner, I want to offer some tools to let them manage the data.
My question is this. Do you split this duty between two different views? One view that gets load...
Just wondering what the best way to incorporate it in a asp.net mvc project so that the design can be done using expression web?
...
Right now I decorate a method like this to allow "members" to access my controller action
[Authorize(Roles="members")]
How do I allow more than one role? For example the following does not work but it shows what I am trying to do (allow "members" and "admin" access):
[Authorize(Roles="members", "admin")]
...
After a user clicks the submit button of my page, there is a textbox that is validated, and if it's invalid, I show an error message using the ModelState.AddModelError method. And I need to replace the value of this textbox and show the page with the error messages back to the user.
The problem is that I can't change the value of the te...
I'm trying to pass ViewData to my asp.net mvc masterpage for an mvc usercontrol that I keep on a masterpage. For example, I created a dropdownlist of names as an mvc usercontrol and I put that in my masterpage.
The problem I am running into is passing the ViewData to the masterpage. I found this article from Microsoft which has a decen...
Scenario:
I have a partial view that is used in several places across my ASP.NET MVC application. The partial view contains a list of "objects" to select, i.e. something similar to:
<ul>
<%
foreach (var person in Model.Persons)
{
%>
<li><a href="#" class="person">
<%= person.Name %></a></li>
<%
...
There seem to be a lot of issues on SO dealing with MapRoute problems. I've read through a bunch of them, but I can't see what I'm doing wrong in my implementation. I've got the following routes set up:
routes.MapRoute( _
"FilesDisplay", _
"{controller}/{action}/{year}/{month}", _
New With {.controller = "Files", .action = "...
I have a project that references the System.Web.Mvc assembly in the GAC. I also have the ASP.NET MVC source code from Codeplex. I want to get a better understanding of the DefaultControllerFactory by stepping through its methods. How could I set this up?
Thanks!
...