Home / ASP.NET Weblogs

October 2009 - Posts

Posted to:

ASP.NET 4 Web Server Here Shell Extension

Have you ever needed to quickly spawn a web server against a local folder to preview a web application? If not, what would you say you do here ? This is actually quite common for me since I receive a lot of zip files containing web applications which reproduce a bug. After I unzip the repro, I need a way to quickly point a web server at the folder and run the web site. A while back I wrote about a useful registry hack to do just this. It adds a right click menu to start a web server (Cassini) pointing to any folder. This was based on a shell extension by Robert McLaws . Well that was soooo 2008. It’s almost 2010 and Visual Studio 2010 Beta 2 is out which means it’s time to update this shell extension to run an ASP.NET 4 web server. Obviously...
Posted to:

New Silverlight Tooling Support in Visual Studio 2010 Beta 2

Visual Studio 2010 Beta 2 will bring full support for developing applications in Silverlight 3.  There’s a few things that have changed since VS2010 Beta 1, and we hope you enjoy the new beta release! Silverlight 2 is no longer supported – long live Silverlight 3 Now that Silverlight 3 has released (including a GDR; the latest version is currently 3.0.40818), VS2010 has moved the minimum supported version to Silverlight 3.  The new installation experience will include the latest Silverlight 3 developer runtime and Silverlight 3 GDR 2 SDK. If you already have the Silverlight 3 RTW version of the SDK installed, this component may fail during VS installation , but not to worry – it won’t affect anything outside Silverlight.  If this...
Posted to:
by: 
10-27-2009, 11:46 AM

Index for Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update

  Thanks to all of you who asked…  I had to take a sick day today, so this was nice mindless work to get done.   Hope you enjoy it! Part 1: Navigation Basics Part 2: Rich Data Query Part 3: Authentication Part 4: SEO, Export to Excel and Out of Browser Part 5: Astoria, Add Service Reference and WinForms Part 6: Data Transfer Objects (DTOs) Part 7: ADO.NET Data Services Based Data Store Part 8: WCF Based Data Source Part 9: POCO and Authentication Provider Part 10: LinqToSql Part 11: The Client-Only World Part 12: DataSet Part 13: The New Class Library Project Part 14: Visual Basic (VB) and WPF Support Part 15: ASP.NET MVC Part 16: Exposing a WCF Service Part 17: Evolving an Application Part 18: Custom Linq Provider Part 19...
Filed under: ,
Posted to:
by: 
10-27-2009, 2:11 AM

WPF 4 (VS 2010 and .NET 4.0 Series)

[In addition to blogging, I am now using Twitter for quick updates and to share links. You can follow me on Twitter at: twitter.com/scottgu (@scottgu is my twitter name)] This is the eleventh in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release.  Today’s post covers WPF 4. WPF 4 Improvements WPF (Windows Presentation Foundation) is one of the core components of the .NET Framework, and enables developers to build rich, differentiated Windows client applications.  WPF 4 includes major productivity, performance and capability improvements – in particular in the areas of Controls, XAML, Text, Graphics, Windows 7 integration (multitouch, taskbar integration, etc), Core Fundamentals, and Deployment.  This is...
Posted to:

Using C# dynamic to call static members

By now, you’ve probably heard that C# 4.0 is adding support for the dynamic keyword, which introduces some aspects of dynamic languages to C#.  I had not had a chance to really try it, but recently I was reading Bertrand Le Roy’s post on the topic, and was sort of looking for a good opportunity to use it. Today, I found a scenario which I thought it would work great for, but it turned out not to be supported out of the box! The scenario is to call static class members using dynamic.  That probably sounds crazy, so let’s look at an example.  Say you have these two classes: public class Foo1 { public static string TransformString(string s) { return s.ToLower(); } public static string MyConstant { get { return "Constant from...
Filed under: , ,
Posted to:

ASP.Net MVC in Visual Studio 2010 Beta 2

Visual Studio 2010 Beta 2 contains ASP.Net MVC 2 in the box so there is no need to install an out of band update to Visual Studio 2010 to develop ASP.Net MVC applications. Phil Haack posted about the in-box experience for Beta 2 andd also provides some info on how to upgrade your ASP.Net MVC 1 apps to ASP.Net MVC 2. From a tooling perspective, all of the new functionality released in ASP.Net MVC 2 Preview 2 for Orcas is available in Visual Studio 2010 Beta 2 including support for Single Project Areas . Additionally, if you look in the Scripts folder of a new ASP.Net MVC application, you will notice that jquery.validate is included as well as a vsdoc file to go with it. I'll post more on how to use jquery.validate in the coming weeks but...
Posted to:

Dev10 Beta2, Import from web.config file and other changes for DB deployment UI

Dev10 Beta2 DB Deployment property page has some changes from Beta1.  Please provide your valuable feedback for us to make it better for you.  Thanks. 1. Tab page name changed from “Deploy/SQL” To “Deploy SQL” 2. Customer can use “Import from Web.config” button to import all the connection strings defined in root web.config to the database entries list.  For example, if web.config contains the following connection strings: < connectionStrings > < add name = " ApplicationServices " connectionString = " data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true " providerName = " System.Data.SqlClient " /> < add name = " AdventureWorksConnection...
Posted to:

Visual Studio 2010 Beta 2 – Intellisense Issue in Javascript/HTML.

If by any chance you are not seeing intellisense in your JavaScript or HTML after installing Visual Studio 2010 Beta 2 you might be running into a known bug that we can show you how to fix. The bug is related to user settings which we don’t remove when Beta 1 is uninstalled. One particular setting under HKCU\Software\Microsoft\VisualStudio\10.0\HTML Editor\ TargetFriendlyName . For Beta 2, this setting does not match the schema’s we know about. As a result, JScript intellisense will fail to load and most items will be missing in markup as well. The minimum fix is to manually repair the TargetFriendlyName setting in the registry (change it to be just "XHTML 1.0 Transitional”) but due to the fact that more settings could be affected the recommended...
Posted to:
by: 
10-23-2009, 2:47 AM

VS 2010 Code Intellisense Improvements (VS 2010 and .NET 4.0 Series)

This is the tenth in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release.  In today’s blog post I’m going to cover a small but really nice improvement to code intellisense with VS 2010 – which is its ability to better filter type and member code completion.  This enables you to more easily find and use APIs when writing code. Code Intellisense with VS 2008 To help illustrate this intellisense improvements coming with VS 2010, let’s start by doing a simple scenario in VS 2008 where we want to write some code to enable an editing scenario with a GridView control. We might start off by typing “GridView1.Edit” to bring up intellisense to see what Edit members are available on the control.  Doing this with VS...
Posted to:

My first channel 9 video!

Wow, I haven't blogged in a while...but that will end soon. Watch me talk about the QueryExtender control. It's a new control we added in ASP.NET 4.0 to make Linq queries even simpler. The new control works with LinqDataSource and EntityDataSource. We also built all of the new DynamicData filters on top of this new control. Check it out here Read More...
Filed under:

< Previous 1 2 3 4 5 Next > ... Last »

Archives