Tech Guy on May 18th, 2010

Visual Studio 2010 is here!
Visual Studio 2010 and .NET Framework 4 mark the next generation of developer tools from Microsoft. Be sure to download the trial for Visual Studio 2010.
Trials:
· Visual Studio 2010 Downloads
· VS Team Explorer Everywhere 2010 [Eclipse plug-in and cross-platform command-line client for Visual Studio 2010 Team Foundation Server]
Virtual Machines:
Visual Studio 2010 [...]

Continue reading about Visual Studio 2010 Resources

Tech Guy on May 10th, 2010

ASP.NET determines the capabilities of the browser that a user is using to browse your site by using a feature called browser capabilities. In ASP.NET version 3.5 Service Pack 1, you can define the capabilities that a browser has in the following ways: At the machine level, you create or update a .browser [...]

Continue reading about ASP.Net 4.0 | Changes to Browser Capabilities

Tech Guy on May 10th, 2010

One of the most complained thing in ASP.NET Webform is the growing viewstate which becomes a concern for performance. While earlier we can set the EnableViewState property to true or false, post that, all the controls, by default inherit and even if we set it to enabled at control level, the behaviour was inconsistent. [...]

Continue reading about ASP.Net 4.0 | View State Performance Enhancement

Tech Guy on May 10th, 2010

Page Meta Keyword & Description – Search Engine Optimization feature
Upto Visual Studio 2008, one can set the Title of the page declaratively or through program using Page.Title. However, as more and more web traffic is happening through search engines, Page’s Title, Keyword and description become more important. Although the Keyword feature was exploited and [...]

Continue reading about ASP.Net 4.0 | The ability to set meta tags

Tech Guy on April 29th, 2010

With Visual Studio 2010 Beta 1 and .NET Framework 4.0 has many improvements for different set of scenarios such as Webforms, Dynamic Data & AJAX based web development. There are also a lot of enhancements to the core runtime that powers ASP.NET such as Caching, Session & Request/Response objects. In this article , [...]

Continue reading about Asp.net 4.0 Webform Features

Tech Guy on April 29th, 2010

Introduction ASP.NET Routing was introduced by Microsoft in .NET Framework 3.5 SP1. The purpose of ASP.NET Routing is to decouple the URL of a resource from the physical file on the web server. Here, the contents are generated by a class dynamically, based on the URL parameters. Because the URL does not [...]

Continue reading about Routing in ASP.NET 4.0 vs Routing in ASP.Net 3.5

Tech Guy on April 28th, 2010

Purpose : It returns the left-hand operand if it is not null; otherwise it returns the right operand. Eg :

int y = x ?? -1;
// y = x, unless x is null, in which case y = -1.

Remarks :
Equivalent  of

If [...]

Continue reading about [C# Tips] Null Coalescing Operator (??)

Tech Guy on April 28th, 2010

Purpose : Used in Type Casting… The as operator is like a cast except that it yields null on conversion failure instead of raising an exception. Eg :

string s = myObject as string;
if (s != null)
Console.WriteLine ( “‘” + s + “‘” );
else
Console.WriteLine ( “not a string” );

[...]

Continue reading about [C# Tips] ‘as’ operator

Tech Guy on April 28th, 2010

Purpose: Nullable Types are extension of basic datatypes like int, datetime, double etc… But they can also point to a null reference. Usage : Just add a ? next to the basic data type to make it nullable type Eg [...]

Continue reading about [C# Tips] Nullable Types in C#

Tech Guy on April 26th, 2010

Purpose : Returns true if the value is either null or Empty String (“”)
Eg :

String a = “”;
If (String.IsNullOrEmpty(a))
{
Console.WriteLine(“a is either null or empty string”);
}

Continue reading about [C# TIPS] String.IsNullOrEmpty(string value)