Top ASP.NET Items

Sponsors

Archives

October 2010 - Posts

A quick look at what’s new in Orchard 0.8
We shipped Orchard 0.8 on Monday and it’s the last release we will make before 1.0, which is scheduled for January 2011. We think it’s a pretty nice release in that it wraps up the UI story for the platform. 1. New theme engine with Razor and Clay ASP.NET MVC, on which Orchard is built, supports alternative view engines. Orchard does too, and 0.8 is the first release where the new Razor view engine is the default. All existing views in Orchard have been moved to Razor. An introduction to Razor syntax can be found here: http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx We also improved the way view models are built in Orchard: in a CMS, the type system needs to be flexible enough to allow for the dynamic creation of new...
ASP.NET Web Projects: web.debug.config & web.release.config
DIsclaimer: You may experience some in-consistent behavior using this technique. If so please let us know. I have heard a lot of questions and confusion regarding web.debug.config and web.release.config. For example here is just one question on StackOverflow . The question states: Hello, I want to use the web.config transformation that works fine for publish also for debugging. When i publish a web app, visual studio automatically transforms the web.config based on my First let me explain, as I did to that question, the purpose of the files: web.config/web.debug.config/web.release.config. web.config This is the config file which developers should use locally. Ideally you should get this to be standardized. For instance you could use localhost...
ASP.NET MVC 3: Layouts with Razor
Two weeks ago we shipped the ASP.NET MVC 3 Beta Release .  It supports “go live” deployments, and includes a bunch of nice improvements/enhancements.  You can see a summary of the new ASP.NET MVC 3 features in my beta announcement post .  Also read my original ASP.NET MVC 3 Preview post to learn about other ASP.NET MVC 3 features that showed up with that initial preview release. This is another in a series of “mini-posts” I’m doing that talk about a few of the new ASP.NET MVC 3 Beta features in more detail: New @model keyword in Razor (Oct 22nd) Layouts (this post) In today’s post I’m going to discuss layout pages with Razor, and discuss some of the improvements to them that we introduced with the recent ASP.NET MVC 3 Beta. Razor...
ASP.NET MVC 3: New @model keyword in Razor
Two weeks ago we shipped the ASP.NET MVC 3 Beta Release .  It supports “go live” deployments, and includes a bunch of nice improvements/enhancements.  You can see a summary of the new ASP.NET MVC 3 features in my beta announcement post .  Also read my original ASP.NET MVC 3 Preview post to learn about other ASP.NET MVC 3 features that showed up with that initial preview release. This post is the first of several “mini-posts” I’m going to do that talk about a few of the new ASP.NET MVC 3 Beta features in more detail.  In today’s post I’m going to discuss the new @model directive that is now supported with the new Razor view-engine, and which helps make view files more concise and cleaner. Razor Basics ASP.NET MVC 3 ships with...
Using LinqPad to open SQL CE 4.0 databases
I love SQL CE 4.0 because it promises to solves a problem that only SQLite has been able to solve thus far: no-install, x-copy deployable relational engine with good performance. The disadvantage in using such a recent engine is that tooling is only slowly coming together and is not there yet. I’ve been playing a little with LinqPad though and have noticed that SQL CE 4.0 was already supported. Here’s how to set it up. Download and “install” LinqPad (the install is just unzipping the package wherever you want): http://www.linqpad.net/ Once you’ve unzipped the package and double-clicked the executable, you should see the following screen: Now click “Add Connection”. Switch to “Use a typed data context from your own assembly” and click “Entity...
Patch for VS 2010 “Scrolling Context Menu”
One of the top reported Microsoft Connect issues with VS 2010 has been an issue where context menus scroll even when there is sufficient screen real estate to show the menu in its entirely (with no scrolling required). The VS and WPF teams issued public hotfixes today that you can download to fix this issue. You can learn more and download them here . You can review my previous posts about other public VS 2010 hotfixes that are available below: VS 2010 Find and Replace Dialog Growing VS 2010 Cut/Copy “Insufficient Memory” issue Hope this helps, Scott P.S. In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu Read More...
Building my new blog with Orchard – Part 3: one way to skin a cat
These last few weeks I’ve been refraining from starting any deep work on my new Orchard-powered blog because most of what I had in mind involved widgets, which are being built right now. Version 0.8 is just around the corner: the team is just putting the final touches to the new theme engine and to the widget system. In the meantime, there is still some work I could do that I knew would not be throw-away, and that is CSS. My objectives with this new blog is to reflect in design what the content is about and what it is not about. VuLu is about knowledge, science, art and philosophy. It’s not about shiny gadgets, technology or engineering. That of course means I want nothing web 2.0 in here. Good thing as I don’t have much love for rounded corners...
Working with different versions of AjaxControlToolkit in Visual Studio 2010
When working with different versions of AjaxControlToolkit , Visual Studio 2010 contains some interesting improvements compared to previous versions of Visual Studio. When adding a particular version of AjaxControlToolkit controls (or other similar third-party controls) to the toolbox using the Choose Toolbox Items dialog, we now show the version number of the control that is being added. Figure 1 Once various versions of these AjaxControlToolkit (ACT) controls such as ACT 3.0 and ACT 4.0 are added to the toolbox in separate tabs (one tab per version), o nly the latest applicable version of the ACT controls will display as visible in the toolbox. This reduces confusion when different versions of ACT are present. The version number of the control...
Announcing NuPack, ASP.NET MVC 3 Beta, and WebMatrix Beta 2
I’m excited to announce the beta release of several projects today. Two of these releases - ASP.NET MVC 3 Beta and WebMatrix Beta 2 - are evolutions of projects we first previewed this summer.  The third – NuPack - is a new project that I’m particularly excited about. NuPack – Open Source Package Manager for .NET NuPack is a free open source package manager that makes it easy for you to find, install, and use .NET libraries in your projects. It works with all .NET project types (including, but not limited to, both ASP.NET Web Forms and ASP.NET MVC). NuPack enables developers who maintain open source projects (for example, projects like Moq, NHibernate, Ninject, StructureMap, NUnit, Windsor, RhinoMocks, Elmah, etc) to package up their libraries...
jQuery Templates, Data Link, and Globalization Accepted as Official jQuery Plugins
The jQuery library has a passionate community of developers, and it is now the most widely used JavaScript library on the web today. Two years ago I announced that Microsoft would begin offering product support for jQuery, and that we’d be including it in new versions of Visual Studio going forward. By default, when you create new ASP.NET Web Forms and ASP.NET MVC projects with VS 2010, the core jQuery library is now automatically added to your project. Earlier this year at the MIX 2010 conference I announced that Microsoft would also begin contributing code to the jQuery project.  During one of my keynotes, John Resig -- the creator of the jQuery library – joined me on stage and talked a little about our participation and discussed an...
More Posts Next page »