DevCurry's Image
More about this blog
Latest Post
29 Mar 2010
Total Posts
136
Readers
2344
Liked
0
Disliked
0
Views-Per-Post
17.24
vote up
0
vote down

Generate Sequence Diagrams in Visual Studio 2010 Ultimate

I was checking out the new ‘Generate Sequence Diagram’ feature in Visual Studio 2010 and it’s pretty cool!So if you have a piece of code in a method as shown below and want to generate a sequence diagram for it, just right click the method > ‘Generate
Mar 29 2010 04:47 PM
vote up
0
vote down

Remove All Stylesheets from a Page using jQuery

Here’s a very simple piece of code that removes all stylesheet links from a Page using jQuery<html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Remove All Stylesheets From a Page</title> <link href="CSS/RoundCorners.css"
tags: jquery
Mar 28 2010 03:55 PM
vote up
0
vote down

jQuery UI 1.8 with new Plugins and plenty of Bug fixes and improvements

jQuery UI 1.8 was released a couple of days ago (March 23rd 2010) with 5 new Plugins, one new effect and plenty of Bug fixes and improvements. Check the jQuery UI 1.8 Changelog for what has changed from jQuery UI 1.7.2 to 1.8. Here are some highlights of
tags: jquery
Mar 27 2010 12:48 PM
vote up
0
vote down

Browser Feature detection using MODERNIZR

I was looking out for a tool that can tell me if a browser has the next-gen features natively implemented or not. I found just the right tool called ModernizrFrom the website :“Modernizr is a small and simple JavaScript library that helps you take
Mar 26 2010 03:41 PM
vote up
0
vote down

Simple Count based on a Condition using LINQ

Here’ a simple example demonstrating how to perform a count on a List<> based on a conditionC#class Program{ static void Main(string[] args) { List<Students> students = new List<Students>(); students.Add(new Students() { StudentId = 1,
tags: linq
Mar 25 2010 03:59 PM
vote up
0
vote down

Create a Trial Version/Shareware .NET application

I see plenty of questions around creating shareware applications. Although there are some tools and code available on the web that let you do that, I thought of writing this post to let you know about the FREE Shareware Starter KitThe Shareware Starter
Mar 24 2010 03:16 PM
vote up
0
vote down

Simple Image SlideShow using jQuery

I have seen a lot of users requesting for simple jQuery scripts for SlideShows. I saw a couple of them, but the scripts assumed that the number of image tags has to be fixed beforehand.The code given below is taken from my eBook “51 Recipes with jQuery
tags: jquery
Mar 23 2010 03:34 PM
vote up
0
vote down

Generate Stronger Random Numbers using C# and VB.NET

The RNGCryptoServiceProvider Class implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). Here’s how to generate random numbers using this class. Make sure you import the
tags: vb.net c#
Mar 22 2010 03:58 PM
vote up
1
vote down

Using jQuery to find out Elements on the Page that do not have an ID attribute

In this post, I will demo a simple selector to find out elements on the page that do not have an ID attribute declared on them<html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Input Elements that do not have an ID
tags: jquery
Mar 21 2010 05:06 PM
vote up
0
vote down

Generate Odd Numbers within a Range using LINQ

The Enumerable.Range method generates a sequence of integral numbers within a specified range. Here’s how to use it to generate a sequence of odd numbers within a given range say 20 to 40:C#static void Main(string[] args){ IEnumerable<int> oddNums
tags: linq
Mar 20 2010 03:56 PM
vote up
0
vote down

Learn Silverlight using this Free Online Training Program

Microsoft recently announced the launch of .toolbox! .toolbox is a free online training program where designers and developers can learn to create Silverlight applications using Expression Studio and to apply basic UX concepts to their solutions. Once
Mar 19 2010 02:43 PM
vote up
0
vote down

Join Two String Arrays with Distinct values using LINQ

One of my colleagues was looking out for a simple way to join two string arrays and avoid duplicates (if any) in those arrays. I asked him to use the Union method which excludes duplicates from the return set.C#static void Main(string[] args){ string[]
tags: linq
Mar 18 2010 03:29 PM
vote up
0
vote down

Silverlight 4 Release Candidate

During the MIX10 Keynote on March 15, 2010, Scott Guthrie announced the release of Silverlight 4 Release Candidate (RC). The final release is expected to be sometime in April this year. One of the other related announcements that got me all excited was
Mar 18 2010 09:12 AM
vote up
0
vote down

Add a Twitter Button into Blogger next to the Post Title

You must have observed the new Twitter Button on each post. Within minutes of adding it, a devcurry reader mailed me asking how I implemented the code. It’s quite easy. I am using the tweetmeme service to add a Twitter Button into Blogger with the help
Mar 16 2010 02:39 PM
vote up
0
vote down

Replace Extensions of Images from .jpg to .png using jQuery

A recent requirement demanded that all the .jpg images on a page be replaced with .png’s. Here’s how to solve this requirement using jQuery<html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Change Image Extensions</title>
tags: jquery
Mar 15 2010 02:54 PM
vote up
0
vote down

Smarter Intellisense in Visual Studio 2010

Intellisense in Visual Studio 2010 just got smarter! VS 2010 now not only does a search for the text based on the starting letters, it also does a search for “sub-string” occurrences for the text and prompts a list of possible occurrences. Here’s an
Mar 14 2010 11:45 PM
vote up
0
vote down

Test out Windows Azure AppFabric Technologies using AppFabric Labs

The AppFabric team has released the AppFabric LABS environment. This environment can be used by customers to test out and play with experimental AppFabric technologies, free of cost. The AppFabric also plans to use this environment to showcase some early
Mar 13 2010 07:11 PM
vote up
0
vote down

ASP.NET MVC 2 Released

Today Scott Guthrie announced on his blog the release of ASP.NET MVC 2. The release is now available for VS 2008/Visual Web Developer 2008 Express with ASP.NET 3.5. You can download and install it from the following locations:Download ASP.NET MVC 2 using
Mar 12 2010 05:55 PM
vote up
0
vote down

View Call Hierarchy in Visual Studio 2010

Visual Studio 2010 contains a very useful feature called ‘View Call Hierarchy’. This feature lets you dive into all the calls that are made ‘to’ a method, property or constructor as well as all the calls that are made ‘from’ that method, property or
Mar 11 2010 06:33 PM
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 06: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 07: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 07: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 08: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 05: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 06: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 07: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 08: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 06: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 05: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 07: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 06: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 09: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 08: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 07: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 05: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 04: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 06: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 05: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 07: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 07:26 PM