Monday, November 06, 2006

SilverKey Demo Day

SilverKey will be holding a demo day at Semiramis InterContinental Cairo, Register Here

Monday, October 30, 2006

SQL Server 2005 Collation Issue

I ran into this strange behavior of SQL Server 2005, I have Asp.Net 2.0 Application that is connecting to a SQL 2000 db with collation Arabic_CI_AS, in the application i run a SQL query like follows

Select * from Users where UserName like '%احمد%'

the query works as expected and returns the result, then i modified the application to connect to a SQL Server 2005 database with collation SQL Latin collation and the query no longer returns results, i checked and made sure that the column UserName has a collation Arabic_CI_AS (to be like the SQL 2000 db) and still no results was returned.

I had to change the collation of the whole database to be Arabic_CI_AS (which is a new feature in SQL 2005), after that the query worked as expected.

Monday, October 02, 2006

.netTiers 2.0

The new version of .netTiers template for CodeSmith is Excellent, it's even better than BLINQ

Download it here

Monday, September 04, 2006

XML Notepad 2006

A simple yet useful XML Editor from Microsoft, you can download it here

Sandcastle

Try this Documentation generation tool from Microsoft, you can download it here

Monday, August 28, 2006

Microsoft @Egypt

According to JobsBlog Microsoft will be interviewing people in Egypt on December

Monday, August 14, 2006

A Post From Windows Live Writer

Hellooo..

This post is from a new Blog authoring tool from Microsoft named Windows Live Writer, the great this in this tool is that you can add mutiple weblog accounts (i already added my Live Spaces WebLog account), but i didn't figure out yet how to publish the same post to multiple Blogs in the same time?

You can download the tool from here

Thursday, August 10, 2006

My AspNet Chat Application Update

I updated the sample application that i created on CodeProject before to support mutiuser chat rooms, you can download the updated sample from here

Wednesday, July 05, 2006

Master Page and Content Page Path in ASP.NET

I ran into this problem that i wanted to share.
i have a master page that i use in a content page but the content page is not in the same directory as the master page.
My master page contains "img" elements, when I browsed to the content page those images weren't displayed because they have invalid path.
I found the solution on the MSDN Site


"ASP.NET cannot modify URLs on elements that are not server controls. For example, if you use an img element on a master page and set its src attribute to a URL, ASP.NET will not modify the URL. In that case, the URL will be resolved in the context of the content page and create the URL accordingly.
In general, when working with elements on master pages, it is recommended that you use a server control, even for elements that do not require server code. For example, instead of using an img element, use an Image server control. That way, ASP.NET can resolve URLs correctly and you can avoid maintenance issues that might arise if you move the master or content page."


However this wasn't any good when it comes to the <body> element, the <body> element in my master page has a backgound image <body style="{backgound-image:">
i converted the body element to a server side control and changed the image url to be '~/images/bg.gif' but it didn't work, so i gave up and handeled it through the code

if (Request.CurrentExecutionFilePath.ToLower().Contains("/admin/"))
{
//not in the same folder
boddy.Style[HtmlTextWriterStyle.BackgroundImage] = "../images/bg.gif";

}
else
boddy.Style[HtmlTextWriterStyle.BackgroundImage] = "images/bg.gif";

Tuesday, March 07, 2006

Tuesday, February 28, 2006

Enterprise Library for .NET Framework 2.0

An Updated Version of the Enterprise Library has been released for the .NET Framework 2.0, Go get it from here

Tuesday, February 07, 2006

Microsoft MDC06

Today was the first day in the Microsoft Middleeast Developers Conference (MDC)
the Openning Session was great, they demo some WPF applications.
This year we have Clemens Vaster (congratlations for joining Microsoft :)), during a three sessions clemens talked a bout distributed applications architecture and WCF .
in the last session (WDF Extreme Extensibility) he showed us the open extensible architectre of WCF, he talked about Indigo and REST/POX and showed us the newtellivision