Home / ASP.NET Weblogs

September 2011 - Posts

Posted to:

JavaScript Reference group Dedicated Worker

Travis Leithead showed a video "Building responsive apps and sites with HTML5 web workers" in BUILD. When editing "Dedicated worker" JavaScript file in Visual Studio 11 Developer's Preview, we need to add the following line in the beginning of the file to get the proper JavaScript web walker IntelliSense in the editor: /// <reference group="Dedicated Worker" /> "Dedicated Worker" is a reference Group defined in the Tools->Options->Text Editor->JavaScript->IntelliSense->References. It contains a JavaScript file which contains all the web walker JavaScript HTML5 objects. You can then see IntelliSense, such as importScripts: Also, IntelliSense will be shown form the JavaScript files...
Posted to:
by: 
09-30-2011, 10:20 AM

Why NuGet for Visual Studio 2010 is so useful!

Recently I delivered a session at Virtual TechDays on why NuGet is so useful. As a part of the demonstration, I was showcasing how it automatically allows us to update some of the external reference libraries. Point in case, here is jQuery. Starting Visual Studio 2008 SP1, we have been shipping jQuery and intellisense for jQuery thereof. With Visual Studio 2010, out of the box, when we create a “File – New Project – ASP.NET Web Application” (which would create a Webforms application) it would automatically add the jQuery script files for jQuery 1.4.1 version. This was the then latest version of jQuery when we shipped Visual Studio 2010 way back in early 2010. With the new ASP.NET MVC 3 Tools Update that was shipped in April, this year, when...
Posted to:

Hanselminutes.com: Rewriting a 5 year old VB.NET WebForms application as an ASP.NET Web Pages application with Razor

I'm planning on updating the Hanselminutes.com website to look more modern and look more like this newly redesigned blog . Until then, one of the things I wanted to try was to update the application with some simpler code. The Hanselminutes podcast website is running the same VB.NET WebForms application it was on the day I started the show in January of 2006 (almost 300 episodes ago!) Sure, the app runs fine and there's no real reason to update it, but I wanted to see how quickly I could do it and if the code felt cleaner. There's a few requirements I need to make sure I don't miss: I'd like a new URL scheme. Currently showid is the database, not the logical "show id." Rather than http://www.hanselminutes.com/default...
Filed under: , ,
Posted to:
by: 
09-27-2011, 4:44 AM

Developing ASP.NET MVC 4 Applications on Windows 8 Developer Preview

Well, as mentioned in my earlier posts, the ASP.NET MVC 4 has Developer Preview has been released. You might notice quite a bit of this term “Developer Preview” in 2-3 products specifically. One, Windows 8 is now available as simply Windows Developer Preview. Similarly, Visual Studio 11 is Developer Preview and also the Internet Explorer Platform Preview 3 is a Developer Preview, as with the case with Expression etc., Now, to clarify on a few things which I learnt. The Windows 8, hereinafter referred to as Windows 8 Developer Preview comes as a download along with Visual Studio 2011 Express as described here This edition is just for developing Metro Style applications for Windows Developer Preview using JavaScript, Visual C++, C# or VB.NET....
Posted to:

Page Inspector for Visual Studio 11 Developer Preview

The upcoming version of Visual Studio introduces a number of improvements focused on diagnosing your Web Applications. One of these is the new Page Inspector. Page Inspector is a new tool that brings browser diagnostics tools into Visual Studio and provides an integrated experience between the browser, ASP.NET, and source code. Using Page Inspector, you can inspect elements in the integrated browser and see exactly which file and lines of code generated that element (HTML literal content and server-side code). It also comes with a DOM Visualizer and CSS Tools in which you can modify the properties and see the changes in the browser in real time. Decomposing a Web Page (Source Code Selection Mapping) Page Inspector provides an Inspect mode that...
Posted to:

Writing a Recipe for ASP.NET MVC 4 Developer Preview

NOTE: This blog post covers features in a pre-release product, ASP.NET MVC 4 Developer Preview . You’ll see we call out those two words a lot to cover our butt. The specifics about the feature will change and this post will become out-dated. You’ve been warned. All good recipes call for a significant amount of garlic. Introduction Last week I spoke at the //BUILD conference on building mobile web applications with ASP.NET MVC 4 . In the talk, I demonstrated a recipe I wrote that automates the process to create mobile versions of desktop views. Recipes are a great way to show off your lack of UI design skills like me! In this blog post, I’ll walk through the basic steps to write a recipe. But first, what exactly is a recipe? Obviously I’m not...
Posted to:
by: 
09-20-2011, 11:55 PM

ASP.NET MVC 4 Developer Preview announced at BUILD

Yesterday I wrote this post but forgot to mention about something that is very close to my heart ASP.NET MVC. ASP.NET MVC has been evolving rapidly and within 2 years, we already have had 4 major releases (MVC 1, MVC 2, MVC 3 & MVC 3 Reloaded ) So, it doesn’t go as a surprise that MVC 4 is on the cards and the developer preview was unveiled at BUILD Conference. What does MVC 4 offer for web developers? Enhanced Default Project Template If you are bored with the vanilla blue template that comes with the “File – New – ASP.NET MVC” Project that you have been living with over the last year, here is a refresher. Once you install the MVC 4 Developer Preview through the Web Platform Installer (direct download link is here ), you get to see an additional...
Posted to:

New HTML Editor feature in Visual Studio 11 Developer Preview

Visual Studio 11 Developer Preview has many new HTML editor features, including the following: Scott Gu's Blog: Source view smart task From ASP.NET 4.5 and Visual Studio 11 Developer Preview Whitepaper WAI-ARIA support New HTML5 snippets Auto-reduce statement completion IntelliSense for code nuggets in attributes Automatic renaming of matching tag when you rename an opening or closing tag Discussed a little bit more here than in the whitepaper: Smart indent Event handler generation Extract to user control Smart indentation The indentation of HTML elements has been tightened up so the cursor will always be placed the right place after hitting Enter when inside any empty HTML tag. When the user hits Enter, the closing div tag is moved 2 lines...
Posted to:

Tip #110 Did you know … How to referencing root project’s master page’s properties from sub project’s content page?

Recently, I received a question referring to our blog Part 2 of 3: Creating shared user controls and master pages with sub-projects , asking how to reference master page’s properties from a sub project. I searched the answer and find the following...
Filed under:
Posted to:

PIX-6T4, the DIY console, has an Orchard site

If you're a regular reader of this blog, you may have noticed the electronics posts lately. With my friend Fabien , we've been building a little handheld console from readily available parts. It's also programmable in C#, using a library that we built . It's great fun really. Our plan is to build a kit and a book out of it, to help people learn the basics of digital electronics and C# programming. We've built a site for the project over a few nights last week, using Orchard and hosting on Azure . I thought I'd throw in a little return on experience and talk about the modules we used. The site can be found here: http://www.pix6t4.com The first thing I did to build the site was to build the theme. I started from the built...
Filed under: , , ,

1 2 3 Next >

Archives