Subscribe to this list via RSS Blog posts tagged in Web

Posted by on in Blogs
"Model" Is an Overloaded Word Let's say you're writing a web application, and using the Model View Controller design.  Maybe you're using an out-of-the-box framework like the ASP.NET MVC Framework or Rails, or maybe you're using a different implementation; it doesn't matter.  It's pretty obvious that the "View" portion of the design is the part which provides a template for rendered HTML, and that the "Controller" portion of the design is the part which handles requests, specifying the general outline for what should be retu...

Posted by on in Blogs
Alternate View Folders in ASP.NET MVC Stephen Walther recently posted a tip on how to load an ASP.NET MVC View from a folder other than Views\{controller}\ or Shared. He notes that it's possible to hardcode the path to a View in your Controller action.  He also states that you should not do this: Now, I want to be the first to warn you that you should never, never, never use this tip (Please delete this entry from your news aggregator immediately). There is a good reason for following the conventions inherent in an MVC application....

Posted by on in Blogs
Moq and MvcMockHelpers I'm working on some unit tests for an ASP.NET MVC application I'm developing.  One of the tests ensures that if I construct a URL using Html.ActionLink that the URL which is returned, when fed into the routing system, becomes a correct representation of the route data used to build the URL originally.  I'll discuss this further in a future post, but today I'm going to talk about Moq. Unfortunately, this type of testing requires more mocking than you'd really prefer, despite the significant impro...
Visual Studio 2008 Service Pack 1 Beta Installation Fails The other day I tried to install the Visual Studio 2008 Service Pack 1 beta. The installer failed. In the installation log, I found: Patch (C:\DOCUME~1\CMS~1.VER\LOCALS~1\Temp\Microsoft Visual Studio 2008 SP1 (Beta)\VS90sp1-KB945140-X86-ENU.msp;C:\DOCUME~1\CMS~1.VER\LOCALS~1\Temp\Microsoft Visual Studio 2008 SP1 (Beta)\VC90sp1-KB947888-x86-enu.msp) install failed on product (Microsoft Visual Studio 2008 Professional Edition - ENU). Msi Log: <Microsoft Visual Studio 2008 SP1 (Beta)_200805...
Tags: .NET C# Web

Posted by on in Blogs
ASP.NET MVC Membership One of my disappointments with Ruby on Rails is that it provides no support whatsoever for site logins/membership, which I consider to be a fundamental part of many database-driven websites. Of course, the Rails community has responded — and responded, and responded, and responded — to this need. The Rails wiki notes that there are about a "gazillion" different systems for solving this problem in Rails. I've tried acts_as_authenticated, which does work, but, at least at the time I tried it, req...

Posted by on in Blogs
Updating an ASP.NET MVC App to Preview 2 There's a whole lot of ground not covered in the official update instructions. The MVC Web UI helpers are now in the framework. But they've changed quite a bit. So you must: Remove the assembly from your project. UpdateFrom is no longer an extension method. It's now a static method in System.Web.Mvc.BindingHelperExtensions. So you have to change anywhere you called that. Just to keep you on your toes, System.Web.Mvc.BindingHelperExtensions will probably be renamed soon. RedirectToAc...
Dynamic Creation of IntraWeb Components, Part 2 I recently wrote about limitations in creating IntraWeb components dynamically when using the template processor component. It looks like the Arcana template processor, recently released as open source, may allow this. Worth investigating, anyway....
Tags: Delphi Web

Posted by on in Blogs
The Bleeding Edge Gets Painful The March 2008 ASP.NET MVC Preview 2 is incompatible with AJAX and Dynamic Data. Ouch! AJAX and dynamic data features cannot be mixed in the same Web site or application as the new ASP.NET MVC. You should use separate Web sites or applications....
Tags: .NET Web

Posted by on in Blogs
Dynamic Creation of IntraWeb Components For the past couple of days I’ve been working on an experimental IntraWeb (a.k.a., "VCL for the Web") project. Since I typically generate user interfaces dynamically, I wanted to see how that worked with IntraWeb. On the surface, it’s fairly similar to the regular VCL, but there are some important differences. Rule number one is that all components you create must have the Name property set. The regular VCL doesn’t require this for components created in code, but IntraWeb uses the Component.N...
Tags: Delphi Web

Posted by on in Blogs
Cultural Anthropology and Web 2.0 Check out this VERY interesting movie Web 2.0 ... The Machine is Us/ing Us by Micheal Wesch, Assistant Professor of Cultural Antropology from Kansas State Univerisity. It will tell you a lot about how we got to the Web 2.0 Added on 2007, March 12th: The link above was found on simplegeek blog, which is linked from ChuckJ's blog. From time to time I'm curious what former Borlanderz @ Microsoft are up to like Charlie or Danny. Ok. Simplegeek is not ex-Borlander:-) The Web 2.0 movie does a...

Check out more tips and tricks in this development video: