DevCurry's Image
More about this blog
Latest Post
10 Mar 2010
Total Posts
117
Readers
1272
Liked
0
Disliked
0
Views-Per-Post
10.87
vote up
0
vote down

Convert a JavaScript object to JSON

A colleague of mine was recently searching for a plug-in or script that can convert a JavaScript array to JSON. I asked him to check out JSON.stringify() in the json2.js library, which serializes the JavaScript object into JSON text. Here’s a sample if
Mar 10 2010 07:52 PM
vote up
0
vote down

Regular Expression for Phone Numbers

I was looking out for Regular Expressions for validating Phone Numbers of different countries. Here are some of them:French Phone Number - (0( \d\d ))?\d\d \d\d(\d \d \d\d )\d\dGerman Phone Number - ((\(0\d\d\) (\(0\d{3}\) )?\d )?\d\d \d\d \d\d\(0\d{4}\)
Mar 09 2010 08:16 PM
vote up
0
vote down

Measuring ViewState of your Page with a Simple tool

Whenever I come across performance related issues due to the ViewState, I use the ASP.NET ViewState Helper tool from Binary Fortress. Although there are many other tools that help you measure viewstate, I like this tool as its very simple to use.Assuming
Mar 08 2010 08:33 PM
vote up
0
vote down

Free Live Web Sessions at Zeollar

Zeollar is A Microsoft India Developer and Platform Evangelism (DPE) initiative that gets you the latest technical content on a daily basis in different channels. Currently the site has sessions for Developers (ASP.NET, Silverlight, Azure, Visual Studio,
Mar 07 2010 09:49 PM
vote up
0
vote down

Using Regular Expression to Validate a Decimal Number

One of my clients had a requirement where a decimal input could not exceed 5,2 characters. In other words, the integral part of the decimal could not exceed more than 5 digits and the fractional part could not exceed more than 2 digits.Eg: 99999.22 where
tags: asp.net
Mar 06 2010 06:34 PM
vote up
0
vote down

Windows AppFabric Beta 2 Released

On Monday, March 1st, Windows Server AppFabric Beta 2 was released and now is publicly available for download. First announced at PDC 2009, Windows Server AppFabric is a set of application services focused on improving the speed, scale, and management of
Mar 05 2010 07:17 PM
vote up
0
vote down

WHOIS Information using Windows Command Line

Here’s a simple way to view WHOIS information using Windows Command Line. Just download the WHOIS command-line client called Whois v1.01 from Microsoft as part of its Sysinternals Suite. I have copied it in D:\Utils Now open the Command Line and type the
Mar 04 2010 08:12 PM
vote up
0
vote down

Programmatically determine if a Windows Service is running and stop it

The ServiceController class makes it easy to retrieve information about a windows service and manipulate it. Here’s some code. Before running this example, make sure you have added a reference to System.ServiceProcessC#static void Main(string[] args){
tags: vb.net c#
Mar 03 2010 09:05 PM
vote up
0
vote down

Disable All or Selective Controls on a Page using jQuery

Disabling controls on a Page using jQuery is a cakewalk, thanks to the wonderful Selector API. Here’s an example. I have kept a couple of controls on the page and will show you some ways to disable all or selective controls on a Page using
Mar 02 2010 07:53 PM
vote up
0
vote down

jQuery events stop working in ASP.NET AJAX UpdatePanel

In a recent forum discussion, a user was facing an issue where his jQuery events would stop working after a partial page postback. Here’s the code that worked before a partial page update occurred<html xmlns="http://www.w3.org/1999/xhtml"><head
Mar 01 2010 06:53 PM
vote up
0
vote down

Click me Only Once - jQuery

I have seen a very frequently asked question by developers – How to execute an event only once. With jQuery, achieving this requirement is very simple using OneHere’s how:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Click me
tags: jquery
Feb 28 2010 08:16 PM
vote up
0
vote down

Visual Studio jQuery Intellisense over CDN

Most of us know about the Visual Studio jQuery Intellisense document Visual Studio Intellisense (vsdoc) for jQuery 1.4.1. However many developers are not aware that you can get vsdoc Intellisense for jQuery over CDN (Content Delivery Network) as well.
tags: jquery
Feb 27 2010 07:26 PM
vote up
0
vote down

Retrieve the Selected Item of a DropDownList kept inside a UserControl

I have often seen developers struggling with accessing properties of controls kept inside a UserControl. This post will show you how to retrieve the selected Item of a DropDownList kept inside a UserControl.Let us assume that we have a UserControl called
tags: asp.net
Feb 26 2010 10:36 PM
vote up
0
vote down

Create Nested Directories in C# and VB.NET

A lot of developers do not know that Directory.CreateDirectory() can be used to create directories and subdirectories as specified by the path. Here’s an example C#static void Main(string[] args){ try {
tags: vb.net c#
Feb 25 2010 09:19 PM
vote up
0
vote down

Microsoft Web Application Gallery

Here’s a way to get instant access to the most popular free web applications available today. Check out the Windows Web Application Gallery. With just a few clicks you can install some popular web applications and be up and running within minutes. Learn
Feb 24 2010 08:07 PM
vote up
0
vote down

Display an Image when the GridView has no data

I recently answered a question on the forum where a user wanted to display an image when the GridView returns empty data. Now you must be already be familiar with the GridView’s EmptyDataText property which displays a message to the user when there are
tags: asp.net
Feb 23 2010 06:53 PM
vote up
0
vote down

Professional ASP.NET 4 Book

Those who have been doing ASP.NET development and reading ASP.NET books are quite familiar with Wrox author Bill Evjen. He is a leading expert on ASP.NET and has the ability to present complex topics with ease.Bill along with two other experts (Scott
tags: asp.net
Feb 22 2010 05:53 PM
vote up
0
vote down

Hotmail - The message is too big to be completely displayed. Only the first 768 KB is shown

Have you encountered this message while viewing your mail using Hotmail - “The message is too big to be completely displayed. Only the first 768 KB is shown”Well if you are under the impression that there is a solution to it (as I too was hoping before
Feb 21 2010 07:13 PM
vote up
0
vote down

.NET 4.0 Beta Exams announced – take them for free

The .NET 4.0 Beta Exams were announced recently by Microsoft over hereHere’s a list of exams that will be made available in between March 31, 2010 to April 20, 2010. 70-511 TS: Windows Applications Development with Microsoft® .NET Framework 470-513 TS:
Feb 20 2010 06:11 PM
vote up
0
vote down

Creating a CustomFilter on the Silverlight 3 AutoCompleteBox

Silverlight 3 has the AutoCompleteBox control which is a textbox that shows suggestions in a drop-down, when the user types text into it. Here’s a very simple example of this control in action.Just drop in a TextBlock and the Silverlight3 AutoCompleteBox
Feb 19 2010 08:16 PM
vote up
0
vote down

Free EBook - Understanding Microsoft Virtualization Solutions

This guide will teach you about the benefits of the latest virtualization technologies and how to plan, implement, and manage virtual infrastructure solutions. The technologies covered include: Windows Server 2008 Hyper-V, System Center Virtual Machine
Feb 18 2010 08:26 PM
vote up
0
vote down

jQuery UI DatePicker – Programmatically selecting a Date

When the jQuery UI DatePicker shows up, the current date is selected by default as shown below: Note: It was the 12th of February, 2010 when I tried this example.However if you want to programmatically select a date, then here’s how to do so. We will
tags: jquery
Feb 17 2010 07:11 PM
vote up
0
vote down

Rounded Corners with the Cornerz jQuery plugin

I found a useful plugin created by Johan Fox to create rounded corners with ease. The output looked consistent in most of the latest browsers I tested it on. You can download the plugin over here. Here’s how to use this plugin in your
tags: jquery
Feb 16 2010 07:59 PM
vote up
0
vote down

Inheriting Style in Silverlight 3

CSS developers are quite familiar with Style Inheritance i.e defining new styles based on existing ones. In Silverlight 3, you can do style inheritance by using BasedOn attribute on Style.Here’s an example. We will first create two styles (FontSz and
Feb 15 2010 06:49 PM
vote up
0
vote down

Visual Studio 2010 and .NET Framework 4 Training Kit – Updated (February Edition)

You can download the latest VS 2010 and .NET 4.0 Training Kit over hereThis updated kit which works with with Visual Studio 2010 RC and .NET Framework 4 RC, will help you to learn about the latest Visual Studio 2010 features, SharePoint, Application
Feb 14 2010 05:59 PM
vote up
0
vote down

Reconfigure TFS 2010 RC to select another Database Edition

In this small post, I will show you how to reconfigure Team Foundation Server (TFS) using SQL Server 2008 R2. Here’s some background information:I had installed TFS 2010 RC with basic settings which means that I had TFS 2010 RC installed on a box which
Feb 13 2010 11:53 PM
vote up
0
vote down

First Look: Microsoft Office 2010 – Free EBook

For a limited time, you can download the free eBook First Look: Microsoft Office 2010 by Katherine Murray.As given on the site, the free eBook (first 14 chapters) contains the following content:Part I, “Envision the Possibilities,” introduces you to the
Feb 12 2010 04:26 PM
vote up
0
vote down

Visual Studio 2008 jQuery Intellisense - Error updating JScript IntelliSense: Object doesn't support this property

I had recently posted about the jQuery 1.4.1 Intellisense support for Visual Studio. A user commented back saying that intellisense did not work for him. He encountered an error in Visual Studio that said “Error updating JScript IntelliSense”If you are
Feb 11 2010 05:23 PM
vote up
0
vote down

Visual Studio Intellisense (vsdoc) for jQuery 1.4.1 now available

Visual Studio Intellisense for jQuery 1.4.1 is now available and can be downloaded from the jQuery site I have downloaded both the jQuery 1.4.1 library and the Visual Studio Intellisense documentation for jQuery 1.4.1 and kept it in the Scripts folder.
Feb 10 2010 04:01 PM
vote up
0
vote down

Visual Studio 2010 and .NET Framework 4 Release Candidate

The Visual Studio 2010 and .NET Framework 4 Release Candidate (RC) is now available to MSDN subscribers from Monday, February 8th. The release will be made available to everyone else on February 10th. You can access the download files over hereYou can
Feb 09 2010 04:43 PM
vote up
0
vote down

C# 4.0 New Features, Videos, Articles and Books

I was collecting some learning material on C# 4.0 and stumbled across some useful videos, articles and documents available on C# 4.0. I am just listing a few of them. Check them out!Samples and DocumentsNew features of C# 4.0 (Beta 2) Download C# 4.0
tags: vb.net c#
Feb 08 2010 07:40 PM
vote up
0
vote down

Exploring the unwrap() method in jQuery 1.4

As given in the jQuery API documentation, the .unwrap() method removes the element's parent. The matched elements (and their siblings, if any) replace their parents within the DOM structure.Here’s an example:<html> <head>
tags: jquery
Feb 07 2010 06:52 PM
vote up
0
vote down

ASP.NET MVC 2 RC2 Released

After the positive feedback from ASP.NET MVC 2 RC1, Microsoft has decided to release RC2 (Release Candidate 2). This release fixes a few bugs in the RC, but adds one big feature, and that's a change to the validation model. The new feature makes the
Feb 06 2010 06:05 PM
vote up
0
vote down

Simultaneously add Multiple Event Handlers to a Selector using jQuery 1.4

With jQuery 1.4, you can add multiple event handlers to a selector by passing a map of event type/handler pairs as shown below:<html> <head> <title>Bind Multiple Event Handlers</title> <style type="text/css"> .divOne{
tags: jquery
Feb 05 2010 07:06 PM
vote up
0
vote down

How to Reference a JavaScript file from a Content Page

When developers reference a JavaScript file in a Master Page and have to use it only in a couple of Content Pages, there is an extra overhead involved, since the file gets referenced for every Content page. To avoid this overhead, you can reference the
tags: asp.net
Feb 04 2010 07:59 PM
vote up
0
vote down

Backward Compatibility Plug-in for jQuery 1.3

If you have been using jQuery 1.3 and now plan to upgrade to the latest version jQuery1.4, then take a look at the Backward Compatibility Plug-in for jQuery 1.3. This plug-in is for cases where you're having explicit problems upgrading from jQuery
tags: jquery
Feb 03 2010 06:52 PM
vote up
0
vote down

Find all the Silverlight Button Controls On a Page

Recently I had to recursively list all the Silverlight Button controls on a Page. I stumbled across a piece of generic code suggested by tucod. Here’s the code for your reference which recursively finds all the Buttons in the VisualTree.C#public partial
Feb 02 2010 07:55 PM
vote up
0
vote down

SlideUp and SlideDown using delay() in jQuery 1.4

I am excited with the addition of delay() in jQuery 1.4. The .delay() method allows us to delay the execution of functions that follow it in the queue. I have been using it in a couple of places and here’s a small demo of how useful the delay() method is
tags: jquery
Feb 01 2010 08:55 PM
vote up
0
vote down

Prevent a ScrollViewer’s Vertical ScrollBar to be displayed

A ScrollViewer is a container that can display content that is larger than the ScrollViewer itself. However by default the Scroll Viewer displays a Vertical Scrollbar even if the the content falls within the dimension of the ScrollViewer<Canvas
Feb 01 2010 08:33 AM
vote up
0
vote down

Adding all TextBox values to a Hidden field using jQuery

I was recently asked on one of the ASP.NET forums how to store all the values of every text box in a hidden field using JavaScript. I immediately said use jQuery! And this is what I came up with:<html xmlns="http://www.w3.org/1999/xhtml" ><head
tags: jquery
Jan 30 2010 07:25 PM