Is Donut Caching working properly with ASP.NET MVC?
And by donut caching, I'm refering to Scott Guthrie's blog post which is awesome. Does anyone know if that works properly? ...
And by donut caching, I'm refering to Scott Guthrie's blog post which is awesome. Does anyone know if that works properly? ...
Now that everyone is talking about MVC, I notice that the business rules are not being addressed. In the old days of the 3-tier architecture, The business rules were in the middle layer. Where do they fall in the new MVC? ...
I'm a Java developer looking to learn some C#/ASP.NET. One thing I've never liked about .NET from the get-go was that it didn't have support for MVC. But now it does! So I was wondering if anybody knew where to get started learning C# MVC. Also, do you need the non-free version of developer-studio to do this? ...
Before you answer, this question is complicated: We are developing in asp.net / asp.net mvc / jQuery but I'm open to solutions on any platform using any framework I think logic like sorting / hiding columns / re-arranging columns / validation (where it makes sense) should be on the client-side I think logic like searching / updating th...
I am having trouble deploying an asp.net MVC app to IIS7. I have an MVC project created with asp.net mvc beta 1. It consists of nothing more than the default template unmodified. The app runs just fine within VS2008, but when I publish it to a local IIS7 website (http://localhost), I get the following server error: The incoming r...
After I upgraded to the beta, I'm having trouble with Html.RadioButtonList. Can someone show me what I'm doing wrong? The code: <% Html.RadioButtonList( "voter" + voter.Id, new SelectList(new[]{"yes","no","abstain"}, "yes")).Each(x => Response.Write(x)); %> And the exception I get: [ArgumentNullException: Value cannot be nu...
So let's say I have an eBay-type application where only the seller can edit his/her listing. How do I go about restricting access to the Edit action based on the Id of the item we're editing and the currently logged in user? As far as I can tell, the Authorize attribute only allows you to restrict access to controller actions based on ...
I just moved a project to the the beta release of ASP.net MVC framework and the only problem I am having is with jQuery and jQueryUI. Here's the deal: In Site.Master are the following script references: <script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script> <script src="../../Scripts/jquery-ui.js" type="text/javas...
In the default asp.net mvc project, in the Site.Master file, there is a menu navigation list: <div id="menucontainer"> <ul id="menu"> <li><%= Html.ActionLink("Home", "Index", "Home")%></li> <li><%= Html.ActionLink("About Us", "About", "Home")%></li> </ul> </div> This renders in the browser to: <d...
I just downloaded the ASP.NET MVC beta and the templates are not StyleCop compliant. Why is new .NET code coming from Microsoft not StyleCop compliant? ...
I'm looking for some examples for asp.net mvc that use the integrated asp.net forms-authentication based membership providers with edit and post scenarios. I'm looking for best practices here. Let's say I have a Contacts table in my database with a Name field, and a UserId field which is tied to the aspnet_Users UserId field. I thought ...
I'm following the ASP.Net MVC "TaskList" example video and on clicking Run in Visual Studio (~14:00 min into the video) I'm getting the following error message in the browser: Server Error in '/' Application. Bad IL format. Description: An unhandled exception occurred during the execution of the current webrequest. Please review the s...
I have ran into an odd problem with the ActionLink method in ASP.NET MVC Beta. When using the Lambda overload from the MVC futures I cannot seem to specify a parameter pulled from ViewData. When I try this: <%= Html.ActionLink<PhotoController>(p => p.Upload(((string)ViewData["groupName"])), "upload new photo") %> The HTML contains a ...
When i use any of the other strongly typed HTML helpers after typing for example Html.Actionlink<HomeController>(x=>x. This pops up intellisense on the methods that the HomeController class has. However for the example above, this does not happen. Only after inserting the link text (second parameter) and going back to the lambda expr...
I was just wondering, if by moving complex if else statements and the resulting html markup to the code behind violates some 'MVC' law? It seems like a great option when faced with inline if else statements that can become extremely unreadable. ...
How would I go about adding enctype="multipart/form-data" to a form that is generated by using <% Html.BeginForm(); %>? ...
What is the best way to manage the JavaScript files and the functions/objects context in an ASP.NET MVC app? ...
I'm working my way into MVC at the moment, but on my "To learn at some point" list, I also have WCF. I just wonder if WCF is something that should/could be used in an MVC Application or not? The Background is that I want a Desktop Application (.NET 3.5, WPF) interact with my MVC Web Site, and I wonder what the best way to transfer data ...
Hi, I am probably overlooking something really simple here but I am trying to redirect all bad URLs to an action that filters the URL based on conditions and then either 301 redirects to a suitable page or issues a 404 page. To this end I have a route like this at the end of my route table: routes.MapRoute("Error", "{*url}", new { con...
Hi All, I have visual studio 2008 installed on my PC. Can anyone tell me what should I get installed so that I can start with the MVC architecture. I am very much confused about the .NET versions required for MVC architecture. thanks. ...