March 2008 - Posts

Wow, this is far better now with SL2! no more tips and tricks.


<script type="text/javascript">
function DisplayMessage()
    alert("call me from Silverlight 2");


using System.Web.Browser;

Posted by pluginbaby | 5 comment(s)
Filed under:

PhotoZoom is an experimental site developed at Microsoft, running on the Microsoft Live Labs Incubation Platform.

It uses the Deep Zoom technology in Silverlight 2 to create photo albums that you can zoom an pan. This online app take care of processing the images, packages and uploads them to Silverlight Streaming by Windows Live so they are stored "in the cloud".

Please note:

  • You need Silverlight 2 beta 1
  • This is not a final product
  • This may never be a product as is

Check out live my Las Vegas photo Gallery:

Disclaimer by Matt Augustine at Microsoft :
"PhotoZoom is an experimental project developed by a small group of Microsoft developers, and it is definitely not an official, supported Microsoft product. Also, I cannot make any guarantees that it will be operational at all times, that it will support a large number of users, etc. This is not an official Microsoft press release and I am not a spokesperson. I can’t make any suggestions about future Microsoft product releases related to this technology or concept. In other words, I hope people will have fun with it, but please set your expectations accordingly."

Posted by pluginbaby | with no comments

Microsoft Connect has been improved! The new website is much more intuitive and interactive. "Your dashboard" view helps to keep an eye on your activities and news. I find the new Connect much more interesting than the old!

What is Connect ?
This is a way to help Microsoft improve their software by submitting feedback, bugs and filling surveys. Pick a program in the "Connection Directory" and start participate! Download the latest software and discuss your experience in the newsgroups.


Posted by pluginbaby | with no comments

I have reported a VS2008 issue to the VS Team regarding code snippets :

I am a heavy snippets user, and noticed that they are not tied to multi targeting...

I use VS2008 with ASP.NET 2.0 websites (not migrated to ASP.NET 3.5), but snippets are for ASP.NET 3.5

For example typing "prop" in C# code behind gives you:

public int MyProperty { get; set; }

Unfortunately this is not .NET 2.0...

Suggestion: Built-in code snippets should be multi-targeting aware.

The issue is visible and tracked in Connect:

I agree that the generated IL is the same, but the problem is when you work with VS2008 on the same project along with a VS2005 team...

What do you think ?


Posted by pluginbaby | with no comments
Filed under:

This month I was a guest at the Visual Studio Talk Show, a well known french .NET podcast here in Quebec.

We talked (in french...) about all the announcements (mainly IE8 and Silverlight) made at MIX this year, so in case you need a recap of this show...

Les nouveautés de la conférence MIX 2008:

Technorati Tags: ,,

Today I had to migrate a Silverlight Alpha 1.1 project to Silverlight 2 beta 1 for a client.

As we had to expect there are a lot of changes!

First thing to notice: after installing Silverlight 2 Tools for Visual Studio 2008 you won't be able to open your Silverlight 1.1 projects in VS2008, you have to migrate.

The best way is to create a new Silverlight application and copy your old files there, then this article will be a huge help to fix your issues:
MSDN: Breaking Changes in Silverlight 2

Here are some of the changes I had to deal with:

  • HtmlDocument.GetElementByID -> HtmlDocument.GetElementById
  • System.Windows.WebApplication.RegisterScriptableObject -> HtmlPage.RegisterScriptableObject
  • System.Windows.WebApplication -> System.Windows.Application
  • [Scriptable] attribute -> [ScriptableType] for class,  [ScriptableMember] for methods

And the one who surprised me the most: Web Services

It is said that you have to regenerate your Web Service client proxies, but when looking for "Add Web Reference" in VS2008, I don't find it!! I just have "Add Service Reference" which is WCF for me. For ASP.NET 3.5 projects, you have both "Add Service Reference" for WCF and "Add Web Reference" for Web Services.
I know that Silverlight 2 supports both WCF and Web Services, so where the hell is "Add Web Reference" ??

Answer is: use "Add Service Reference"!
Calling a Web Service in Silverlight 2 is very similar to calling a WCF Service, that means that you have to specify binding and endpoint.

Second surprise: all web service calls must be asynchronous!
You must implement the async pattern, that surprised me at first, but now I found that this is not a bad thing and just requires 2 or 3 lines of code, so get used to it!

For syntax and code details I invite you to read this very good post :
Calling web services with Silverlight 2

Here is a nice feature of IE8:

Remember both "Disable script debugging" options you had to uncheck in IE to enable JavaScript debugging ?


You no longer have to!

You can now stay on default "script debugging off" mode in IE and when you hit F5 in VS2008, IE launch and the current tab is automatically set for debugging!

[via Your Websites, Our Passion!]

Also note that a slightly different version of the Internet Explorer Developer Toolbar is now built-in IE8, it is called the Developer Tools.

IE is getting better for web developers, keep on, go ahead...

Posted by pluginbaby | with no comments

Browsershots is a free online tool that makes screenshots of your web site in different browsers/versions on multiple platforms (Win, Mac, Linux).

Use it to test the look of your web sites :

Set your choices then come back later and see the results (here you can see my blog before/after the Opera fix):

On the live app you can click on a picture to get the full version.

Note: IE8 is already available, but no Silverlight yet.

Posted by pluginbaby | 1 comment(s)
Filed under: ,

[Update: I have a Winner... contest closed!] 

I was told that my blog does not display very well (or not at all) in Opera browser...

Like most of you I don't have time for this, and community server's css are a real mess, so if someone takes time and send me the fixed css I will be happy to send him this DVD of Visual Studio 2008 Standard Edition (Full version with licence key) :

So Paul Bidwell was the first to send me a fix:

"/Themes/Blogs/marvin3/style/DynamicStyle.aspx?SectionID=559" Line 156:

#sidebar-a {
width: 200px !important;

Change the width to 199px;

Also an img tag was no properly closed... (fool me!)

Posted by pluginbaby | 2 comment(s)
Filed under: , ,

An excellent one from !!

Posted by pluginbaby | with no comments
Filed under: ,
More Posts Next page »