Microsoft Most Valuable Professional

Chris Pietschmann

An MVP From Wisconsin

ASP.NET 2.0: RewritePath breaks HyperLink's ImageUrl in App_Theme file when path with slash is rewritten

Rewriting a path with a slash ("/") in it will cause a HyperLink's image specified in the ImageUrl property within an App_Theme file to not be displayed. This can also lead to a "Cannot use a leading ..." error when running the website within IIS.

Here's a screenshot of the issue occuring:

This is kind of a strange bug, since doing the same thing with an Image works just fine. It's only the HyperLink that breaks. I experienced this issue the other day, and it took me a little bit to figure out what was causing the problem. The answer is ASP.NET, kind of.

Download Sample Code Demonstrating this issue here.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:
Categories: asp.net | General
Posted by crpietschmann on Sunday, October 28, 2007 1:08 AM
Permalink | Comments (1) | Post RSSRSS comment feed


Virtual Earth 6 Bug: GetDirections breaks when Start and End Address are the same

When using the new GetDirections method to get multi-point driving directions everything works fine if the Start and End address are different. But it shows unexpected results on the map when plotting a multi-point route that has an End address the same as its Start.

Here's some sample code to reproduce this issue:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>
      <script type="text/javascript">
         var map = null;
         function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap();
            map.GetDirections(["Microsoft", "Everett WA", "Bellingham WA", "Microsoft"]);
         }  
      </script>
   </head>
   <body onload="GetMap();">
   <div id='myMap' style="position:relative; width:400px; height:400px;"></div>
   </body>
</html>

Here's a screenshot of the results displayed on the map:

This is the third bug in Virtual Earth 6 that I've found since it was released almost 2 weeks ago.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Virtual Earth
Posted by crpietschmann on Sunday, October 28, 2007 12:28 AM
Permalink | Comments (0) | Post RSSRSS comment feed


Ultimate Mac vs. PC - Steve Jobs vs. Bill Gates

This is just hilarious.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:
Categories: General
Posted by crpietschmann on Wednesday, October 24, 2007 9:11 PM
Permalink | Comments (1) | Post RSSRSS comment feed


Real Estate - The Search That Should Be.

There are so many real estate sites out there, and each one has certain features or aspects about them that attract certain users more than others. However, even though there are so many, it just seems that no one can really get it right.

Property Search

Property Search is the main reason everyone visits a real estate website; because we're looking to buy or sell a home. You enter in the criteria you're looking for and the website shows you a list of properties matching your criteria. Clean, Simple, and Works.

Property Search + Maps

A couple years ago came Google Maps, Live Maps and Yahoo Maps, so now everyone is trying to map everything. Mapping real estate search results is just plain awesome! You can very easily visualize where the houses are. There are more and more real estate sites adding this functionality everyday. A couple of the larger ones are:

I even envisioned and build a real estate property search mapping product offering for my previous employer that first launched back in 2006 that uses MS Virtual Earth (Live Maps). And, they are having absolutely no problems selling it to their clients. Mapping is just what's Hot, especially when implemented using such interactive mapping products such as Google Maps, Live Maps and Yahoo Maps.

Property Search + Maps + Amenities

Another feature that some companies are starting to implement into there Dynamic/Interactive Map Property Search tools, is the ability to plot Amenities (Schools, Fire Depts., Police Depts., etc.). And, the ability to plot all this other stuff along with your property search results really lets you see visually where and how far away these places are from your prospective new home.

An amenity that Zillow.com shows you when you zoom the map in real close to a neighborhood is the Tax Assessed value of each home in the neighborhood along with the beds, baths and square feet of each home. This adds an entire other aspect to searching for a home; this allow you to help determine if the home is a wise investment.

Property Search + Maps + Amenities + MORE!

What more would you possibly want to map next to your property search results? Well, actually how about mixing in any mappable information possible! There are so many things that can be mapped:

  • Local Sex Offenders
  • Recent Severe Crime (like: murders, rapes, robberies, etc.)
  • Land Elevations, such as marking flood zones
  • US Census Data to show things like how many people like in that neighborhood
  • Traffic density - Is the house on a busy street? Or, will I get caught in rush hour on the way home?
  • Bus stops, Subway and Train stations
  • Grocery, Department and other stores
  • Gas stations
  • Public parking

There are so many more things that could be mapped, but you get the idea.

Interactive/Dynamic Property Search

Plotting all the stuff I described above on the map with your property search results is just fine, but to really make the tool powerfull, you need to empower your user as much as possible. Once the use defines the general area (like City or County) that they are looking in, just zoom the map to there and let them see all listing that are in the area that's shown on the map. This allows the user to see all surrounding listings that are close to the area they are searching, and if they decide to search in another area close by, all they have to do is pan/zoom the map to the new area they want to search. This is a rather necessary feature that even Realtor.com doesn't support.

Community Interaction

Websites like Digg.com have taught us that letting the community contribute to a website can really add some rich content that users want. I haven't really thought too much about all the different ways that users could contribute data and content to a real estate website, but here's some:

  • 5 star rating on overall impression of Neighborhood, City and/or County
  • Ability to post comments on each property listing, Neighborhood, City and/or County
  • Allow users to contribute to a list of local events and festivals that can be plotted on the map

Personally, I have yet to see a real estate site incorporate any type of community interaction that gets mixed with other users property searches.

Driving Directions

What about driving directions? Driving directions can be used to help the user plot a route to see all the open houses they want to look at on Sunday. Or, how about being able to show driving directions from any point on the map (like: Place of Employment, or any other aminity on the map) to and from the property of interest. This would be a powerful feature, that would empower the user to easily see how much longer or shorter their commute will be, or how far it'll be to take the kids to school in the morning.

Syndication and RSS

Todays internet user wants to bring all the content they're interested into a single place for them to see it. RSS feeds allow this. Alot of companies are still shy about sharing their data, but more and more are warming up to it. The following could be made into RSS feeds for users to consume in their favorite reader or on their website/blog:

  • Property Search Results
  • Open Houses
  • Saved Properties
  • Saved Searches

Conclusion

There are so many things with mapping and real estate that can be done, but just aren't. I'm not sure why, but we have the data, all we have to do is put it to use. If someone could manage to put all the above pieces together, it would be the next killer real estate site.

Updated 2007-10-30: Added section about RSS

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:
Categories: General
Posted by crpietschmann on Tuesday, October 23, 2007 5:46 PM
Permalink | Comments (1) | Post RSSRSS comment feed

Virtual Earth 6 Bug: ShowSwitch parameter of LoadMap method no longer works

Update 12/29/2007: This is no longer a bug. It has been fixed since I originally posted this.

This is the second bug in Virtual Earth 6 that I've found today. It appears that the showSwitch parameter of the LoadMap method is broken and no longer works.

As the documentation states:
"A Boolean value that specifies whether to show the map mode switch on the dashboard control. Optional. Default is true (the switch is displayed)."

Below is a screenshot showing what is incorrectly happening and what should be happening:

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Virtual Earth
Posted by crpietschmann on Friday, October 19, 2007 7:14 PM
Permalink | Comments (1) | Post RSSRSS comment feed

Virtual Earth 6 Bug: Zoom buttons in wrong place with multiple maps on the same page

I'm currently working on adding Virtual Earth v6 support to Web.Maps.VE, and I have found a bug in VE6. When there are multiple maps on the same page the images for the zoom in/out buttons of the dashboard are not getting displayed on the correct map. I circled them in red in the screenshot below...

This is kinda strange behavor.

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Virtual Earth
Posted by crpietschmann on Friday, October 19, 2007 5:01 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Official Release of Simplovation and Web.Maps.VE!

I am proud to announce that I have just officially launched Simplovation and released our first product, Web.Maps.VE!

What is Simplovation?

Simplovation is my new startup, and is a Micro-ISV. Our focus is on developing first class, resuable components and developer tools that target the .NET Framework.

Simplovation.Web.Maps.VE v1.0 Sample WebsiteWhat is Web.Maps.VE?

Web.Maps.VE is the latest, much evolved version of my open source control. This is the only ASP.NET 2.0 server control that brings Full ASP.NET AJAX Support to implementing MS Virtual Earth mapping within an ASP.NET 2.0 application. You can now implement Virtual Earth functionality with Only .NET Code, and absolutely No JavaScript Hassles!

For more information go check out Simplovation.com!

 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by crpietschmann on Monday, October 15, 2007 3:28 PM
Permalink | Comments (1) | Post RSSRSS comment feed

WI-INETA: Oct. '07 - Code Generation, Software Factories and Visual Studio Extensibility

The October 2007 meeting of the Wisconsin .NET Users Group is falling on the third Tuesday this month. There has been some scheduling issues; mainly in regards to finding a meeting location. If you would like to host a meeting, please contact the group.

This months meeting (on Tuesday, Oct. 16, 2007 at 7:00 PM) we will be having Brennan Stehling presenting on Code Generation, Software Factories and Visual Studio Extensibility. See the description of what will be covered below:

Productivity can be enhanced by automating as much of the routine coding that is necessary with every project. Much of the software we work with is boilerplate code that is often created manually. Tool improvements now allow us to skip all of this mindless typing. With a little work you can automatically generate the boilerplate code using features built into the .NET framework such as CodeDom and then integrate the code generation features with Visual Studio directly as a custom tool. For example, the code that makes DataSets and ASMX web services work is generated with standard custom tools included with Visual Studio. We will walk through the creation of a custom tool to generate code to support the composite pattern which will work with C# or VB projects. Then we will look into the advanced software factories created by the Microsoft Patterns & Practices team and the extensibility features provided by the Visual Studio SDK, such as creating a custom editor for file format used by the composite custom tool.

About Brennan Stehling
Brennan Stehling is a senior .NET developer working in Milwaukee. He's worked with .NET for several years, particularly with web applications. He develops reusable tools in C# and makes them available to developers at SmallSharpTools.com. Brennan is also the author of "Pro SQL Server High Performance: High-speed ASP.NET Data Access" which will be published in October. You can find out more at his blog,
http://brennan.offwhite.net/blog/.

Go check out the Wisconsin .NET Users Group website for more information and to find out the location of the meeting. Remember, membership to the group is completely Free, and so is attendance to each meeting.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: General | WI-INETA
Posted by crpietschmann on Friday, October 12, 2007 12:02 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Microsoft to release .NET Framework 3.5 as Shared Source!

Scott Guthrie announced on his blog today, that Microsoft will be releasing the source code for .NET 3.5 as shared source under the Microsoft Reference License (MS-RL). You will also be able to enable debugging support within Visual Studio 2008 for the .NET Framework.

This is really cool. I have always used .NET Reflector to peek into the source of the framework, but now I'll actually be able to look at the code itself.

More Info:
Releasing the Source Code for the .NET Framework Libraries - Scott Guthrie

.NET Framework 3.5 Is Shared Source - DotNetKicks.com

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by crpietschmann on Wednesday, October 03, 2007 5:35 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Motorola.com Promo/Coupon Code for 15% Off

Here's a Motorola.com Promo/Coupon Code for 15% off any purchase. This code is good through 2/3/2008.

PASS_11805

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:
Categories: General
Posted by crpietschmann on Tuesday, October 02, 2007 4:09 PM
Permalink | Comments (0) | Post RSSRSS comment feed

About the author

I'm Chris Pietschmann, go to the About Me page to learn more about me.

Search

Sponsors

Web.Maps.VE - ASP.NET AJAX Virtual Earth Mapping Server Control

Recent comments

Disclaimer


This work is licensed under a Creative Commons Attribution 3.0 United States License, unless explicitly stated otherwise within the posted content.
© Copyright 2004 - 2008 Chris Pietschmann