Wednesday, December 31, 2008

Happy New Year 2009

Hi, Lets hack the table called Life!


SELECT happiness, prosperity FROM life WHERE year >= 2009

UPDATE life SET failure_flag = 'NO' , success_flag = 'YES';

INSERT INTO life VALUES ('friends','dreams') ;

DELETE sorrows FROM life;

GRANT smile TO all ;

REVOKE enemity FROM all;

ALTER TABLE life ADD dreams CHAR(INFINITY);

Commit;

Wish You Happy

& Prosperous New Year 2009


Regards

F a u z i


Wednesday, December 24, 2008

Ajax website build error : Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions'

Hey...

When i try to build solution for a Ajax based web site with Visual studio 2008 using the Framework 2.0, It gave the following error :

Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I was wondering what could be wrong! I tried placing system.web.Extensions in local bin folder. Tried placing in GAC again. There was no luck... when i goggled, found the following articles which was helpful. It seems the validators are removed in recent releases. The solution is to comment the following tags in web.config:

<tagMapping>
<!--
<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="System.Web.UI.Compatibility.RegularExpressionValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="System.Web.UI.Compatibility.RequiredFieldValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="System.Web.UI.Compatibility.ValidationSummary, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-->

<tagMapping>

Resource articles as follows:

Forums.asp.net , Robin's Blog

Hope it helps

Merry X-Mas :) Wish you Happy New Year 2009 :)


Fauzi ~ 4Z

Friday, December 19, 2008

microsoft IE7 security patch

Hi...

Hope you are aware of the security flaw found in IE7 last week on December 16th.

BBC Link

Microsoft has released a security patch which could be downloaded and installed on the following link.

Security patch

This update addresses the vulnerability discussed in Microsoft Security Bulletin MS08-078 which was regarding the Security issues that has been identified which could allow an attacker to compromise a computer running Microsoft Internet Explorer Version 7 and gain control over it. You can help protect your computer by installing this update from Microsoft. After you install this item, please restart your computer.

Hope it helps

Regards
Fauzi ~ 4Z

Wish you Happy New Year 2009