I have been trying out the NameValueDeserializer from MVCContrib, which will take a IList as a parameter to a controller and bind a form and its elements to it, but I was just wondering if MVC Beta had any way of doing this??
I know you can bind a strongly typed Object but I want to bind a List of these Objects for some bulk editing sit...
Does ASP.Net 2.0 and Visual Studio 2005 has the possibility of working with MVC or I have to move to VS2008 and asp.net 3.5?
...
After installing asp.net (and aspnet_regIIS.exe -i) the site doesn't accept my default.aspx page. When trying to access it I get a 404.
When hitting directly to my mvc pages (/search.mvc for example) it works like a charm.
We checked the website configuration and noted that there are no .aspx references in the scriptmaps node.
What am ...
The strongly typed SearchViewData has a field called Colors that in it's turn is a ColorViewData.
In my /Colors.mvc/search I populate this viewData.Model.Colors based on the given search criteria.
Then, based on several factors, I render one of a set of user controls that are able to render itself with a ColorViewData.
So I will end up w...
Hi,
What are my validation options with .net mvc?
Do any of them have a nice validation summary like webforms did?
...
I have been using the CSLA framework for couple of years now for windows applications. With ASP .NET MVC / AJAX / jQuery out now, would there be any use for the CSLA framework (which is strongly Object Oriented ) in web apps?
...
I am trying to create a route with a Username...
So the URL would be mydomain.com/abrudtkhul (abrudtkhul being the username)
My application will have public profiles based on usernames (Ex: http://delicious.com/abrudtkuhl). I want to replicate this URL scheme.
How can I structure this in ASP.Net MVC? I am using Membership/Roles Provid...
I'm needing to cache some data using System.Web.Caching.Cache. Not sure if it matters, but the data does not come from a database, but a plethora of custom objects.
The ASP.NET MVC is fairly new to me and I'm wondering where it makes sense for this caching to occur?
Model or Controller?
At some level this makes sense to cache at the...
Derik Whitaker posted an article a couple of days ago that hit a point that I've been curious about for some time: should business logic exist in controllers?
So far all the ASP.NET MVC demos I've seen put repository access and business logic in the controller. Some even throw validation in there as well. This results in fairly large,...
When using TempData, my understanding is that it will keep whatever you put in it around for only one request. So when using TempData to retain data across a redirect (in order to use the Post-Request-Get pattern), isn't it possible that some other request from the user could come into the server in between the response sending the redir...
I just downloaded MVC and I am going through a tutorial. Everything goes fine until I try to declare a DataContext object.
My dbml is named db.dbml (tried another on named test.dbml) and when I try this:
public dbDataContext db = new dbDataContext();
I get:
The type or namespace name
'dbDataContext' could not be found ...
Am...
I am playing around with MVC and have started setting up an existing site we have built in standard .Net Forms.
I am only including a JS file and as all the requests are being routed via .Net it is trying to compile it.
It is the standard compilation error you would see with invalid c#:
CS1012: Too many characters in character literal...
What's the best way to handle a visitor constructing their own URL and replacing what we expect to be an ID with anything they like?
For example:
http://stackoverflow.com/questions/236349
But the user could just as easily replace the URL with:
http://stackoverflow.com/questions/foo
I've thought of making every Controller Function pa...
Based on this question here and using code found here I'm trying to load views that are embedded resources in a separate DLL project, and the original question's author says he has had success doing this - but I can't get it to work as it seems the MVC view engine is intercepting the request and still looking at the file system for the v...
another newbie question on ASP.NET MVC ( since I'm don't normally do web apps... )
I'm looking at the MVC account controller.... it seems to be from asp.net?
Is there any good background information on how to use it?
Can you map it to a user database table?
or is it better to simply role your own user management?
How do you make us...
I have a problem whereby I want to display a view differently (a different master page), depending on where it came from, but don't know where to start...
I have several routes which catch various different types of urls that contain different structures.
In the code snippet below, I have a product route, and then I have a partner site...
I been waiting for sometime now to bring my Asp.net Preview 4 project up to snuff, totally skipping Preview 5 just because I knew I would have some issues.
Anyhow, here is the question and dilemma.
I have a few areas on the site which I have an ajax update type panel that renders content from a view using this technique found here. AJA...
This is probably one of those easy questions.. I'm trying to redirect the user after they've successfully authenticated, or return them back to the login page. But the Success page is on a different route and I can't get the redirection to work..
Here are my routes in Globals.asax:
routes.MapRoute( _
"Default", _
"{controller}...
Hi all,
I am trying to get the signature on the method below to work. As this is an Anonymous Type I have some trouble, any help would be great.
When I looked at sortedGameList.ToList() in a QuickWatch window I get the signature
"System.Collections.Generic.List<<>f__AnonymousType0>>"
Many Thanks
Donald
public List<IGrouping<Dat...
Hi all,
I have a route
// Sample URL: /Fixtures/Team/id
routes.MapRoute(
"Fixtures-by-TeamID",
"Fixtures/Team/{teamId}",
new { controller = "Fixtures", action = "GetByTeamID", },
new { teamId = @"\d{1,3}" }
);
and I am trying to use ActionLink in ASP.net MVC p5.
<%= Html.ActionLink(g.HomeTeam.TeamName, "Team", n...