Glad to be a Microsoft MVP again!

July 1st has become an important date in my professional life. My MVP title gets renewed today. I checked my mail a couple of hours ago to see if there were any mails from Microsoft about my renewal.

And yes there was! I am awarded the Microsoft Most Valuable Professional (MVP) title again and I am on Cloud 9. For those who are not aware of the MVP award, this award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. Microsoft’s appreciates your contributions in your Technical communities/Sites/Blogs during the past year and awards the best of the lot.

I have been contributing regularly to http://www.dotnetcurry.com/, http://www.sqlservercurry.com/, http://www.devcurry.com/ and the ASP.NET forums and am glad that my efforts were recognized.

I am so glad that two other authors of http://www.dotnetcurry.com/ -- Mr. Subodh Sohoni and Mr. Shoban Kumar were also awarded the prestigious MVP title. They deserved it!

It feels great to be recognized for your efforts and the MVP award does just the same. I want to thank a lot of people who I have worked with and have inspired me and continue to do so.

I am an MVP and I am proud of it!

FireFox 3.5 Released

FireFox 3.5 is now available for download.

The new versions includes upgrades to performance, features, Web standards support and more.

Here are some important links to give you a better insight to this release:

See What’s New in Firefox 3.5

FireFox 3.5 Features

Release Notes

Learn more about Firefox 3.5’s performance upgrades.

So go ahead and download it now!

Disable Child DropDownList On Selection of Parent DropDownList Using jQuery

I came across a requirement recently where there were two ASP.NET DropDownList – Parent and Child. On selecting a Parent item, the Child items were displayed. However, there were some parents which did not have child elements. When such Parent Items were selected, the child DropDownList needed to be disabled.

Here’s how to do it using jQuery:

<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>DropDownList</title>
<
script type="text/javascript"
src="http://code.jquery.com/jquery-latest.js">
</
script>

<
script type="text/javascript">
$(document).ready(function() {
$("#DropDownList1").bind("change", function() {
if (this.value == "Item2") {
$("#DropDownList2").attr("disabled", true);
return true;
}
$("#DropDownList2").attr("disabled", false);
});
});
</script>

<
style type="text/css">
div.divParent
{
width: 350px;
position: relative;
clear: both;
}
div.divOne
{
width: 50%;
position: relative;
float:left;
}
div.divTwo
{
width: 49%;
position: relative;
float:right;
}

</style>

</
head>
<
body>
<
form runat="server">
<
div class="divParent">
<
div class="divOne">
<
asp:DropDownList ID="DropDownList1" runat="server">
<
asp:ListItem Text="Item1"></asp:ListItem>
<
asp:ListItem Text="Item2"></asp:ListItem>
<
asp:ListItem Text="Item3"></asp:ListItem>
</
asp:DropDownList>
</
div>

<
div class="divTwo">
<
asp:DropDownList ID="DropDownList2" runat="server">
<
asp:ListItem Text="SubItem1"></asp:ListItem>
<
asp:ListItem Text="SubItem3"></asp:ListItem>
<
asp:ListItem Text="SubItem3"></asp:ListItem>
</
asp:DropDownList>
</
div>
</
div>
</
form>
</
body>
</
html>

In the example shown above, if “Item2” in the Parent DropDownList (DropDownList1) is selected, the Child DropDownList (DropDownList2) gets disabled.

Please note that the example focused on disabling the DropDownList and not on enabling the Master-Detail behavior.

How to Debug Client-Side Script In Internet Explorer

If you have got a lot of JavaScript code in your ASP.NET pages, chances are you have to debug it at some point of time to fix a bug or test the output. In IE, you need to explicitly enable debugging support inside the browser. Follow these steps to do so:

Open IE > Tools > Internet Options

Click Advanced Tab > Under the ‘Browsing’ section, clear the checkbox against ‘ Disable script debugging (Internet Explorer)’.

image

That’s it. Now put a breakpoint in your JavaScript code and run the application in Visual Studio.

There are other tools like Microsoft Script Editor too which can be used.

Other browsers like Firefox has tools like FireBug, which is a great tool to debug Client-Side Script.

Rotating Links and Loading Pages in DIV using jQuery

Sometime back, I had written an article on Load pages in DIV using JQuery.

In this article, we will see how to load multiple pages in the DIV using a Link which rotates and presents a different site to the user on each rotation. This can be a nice UI technique to present a set of pages in your website. I will use the Cycle Plug-in for this purpose. Download the Cycle Plugin.

<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>Rotate Links and Load in DIV</title>
<
style type='text/css'>
.divPage
{
border:Solid 1px;
width:300px;
height:200px;
}

</style>
<
script type="text/javascript"
src="http://code.jquery.com/jquery-latest.js">
</
script>
<
script type="text/javascript"
src="jquery.cycle.all.min.js" >
</
script>

<
script type="text/javascript">
$(document).ready(function() {
$('#Links').hide();
$('#A1').click(function() {
$('#Links').show();
$(this).hide();
$('#Links').cycle('fade');
});
$('#Links a').click(function() {
$("#LoadPage").load(this.href);
return false;
});
});


</script>
</
head>
<
body>
<
div id="LoadPage" class="divPage">
<
a href="#" id="A1">Start</a>
</
div>

<
div id="Links">
<
a href="link1.htm">Link 1</a>
<
a href="link2.htm">Link 2</a>
<
a href="link3.htm">Link 3</a>
</
div>
</
body>
</
html>



You can use the Effects Browser page to preview all the effects that are available with the Cycle Plug-in.

That’s it! Load the page and click on the ‘Start’ link to start the Link Rotation. Clicking on each link will display a new page in the DIV.

You can see a Live Demo over here.

Windows 7 Prices are Out!

Windows 7 will be available on October 22nd.

Brad Brooks, Corporate VP for Windows Consumer Marketing, announced Windows 7 Upgrade Option Program, Pricing options and a Pre-Order offer.

The estimated retail prices for upgrade packaged retail product of Windows 7 in the U.S. are:

· Windows 7 Home Premium (Upgrade): $119.99

· Windows 7 Professional (Upgrade): $199.99

· Windows 7 Ultimate (Upgrade): $219.99

And the estimated retail prices for full packaged retail product of Windows 7 in the U.S. are:

· Windows 7 Home Premium (Full): $199.99

· Windows 7 Professional (Full): $299.99

· Windows 7 Ultimate (Full): $319.99

You can also check the Windows 7 Pre-Order Offer

Get more information about the Upgrade options and pricing over here

Text Link Ad Rotation using jQuery

People who have been monetizing their sites need no introduction to Text Link Ads. In simple words, Text Link Ads are Hyperlinks sponsored by Advertisers. When a user clicks on these hyperlinks, they are sent to the sponsor’s website.

In this post, we will see how to rotate Text Link Ads on the same position. I will use the Cycle Plug-in for this purpose, since it accomplishes this task in just one line of code. Download the Cycle Plugin.

<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>Text Link Ad Rotation</title>
<
script type="text/javascript"
src="http://code.jquery.com/jquery-latest.js">
</
script>
<
script type="text/javascript"
src="Scripts/jquery.cycle.all.min.js">
</
script>

<
script type="text/javascript">
$(document).ready(function() {
$('#Links').cycle('fade');
});
</script>

<
style type="text/css">
body
{
font-size:13px;
font-family:"Lucida Grande", "Lucida Sans Unicode";
color:#444444;
}
</style>

</
head>
<
body>
<
div id="Links">
<
a href="http://www.dotnetcurry.com">.NET Articles</a>
<
a href="http://www.sqlservercurry.com">SQL Server Tips</a>
<
a href="http://saffronstroke.com">Expression Web Tips</a>
</
div>
</
body>
</
html>

You can use the Effects Browser page to preview all the effects that are available with the Cycle Plug-in.

Note: To rotate ASP.NET Hyperlinks, replace the HTML links with the following:

<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="http://jquery.com">jQuery</asp:HyperLink>

There’s no need to change any other code since this asp.net control gets rendered as <a href=””…

You can see a live demo of the example given in this post over here. The Link Rotates after every few seconds.

How Do I Videos for the Windows Azure Platform

The Microsoft Azure Services Platform is an Internet-scale cloud services platform hosted in Microsoft data centers. The Azure Services Platform includes an operating system, Windows Azure, and a set of developer services to be used individually or together: .NET Services, Live Services, and SQL Data Services.

Microsoft makes it easy to learn the Azure Services platform through the ‘How Do I’ video series. The series was recently updated with new videos. Check them out over here:

Check out more videos over here : "How Do I?" Videos for the Azure Services Platform