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 [...]

Tags: , , ,

Tech Guy on May 13th, 2010

Core Java Interview Questions
Q: What is the difference between an interface and an abstract class? A: An abstract class can have instance methods that implement a default behavior.  An interface can only declare constants and instance methods, but cannot implement default behavior.  An class is abstract if it is defined with the keyword [...]

Tags: , , , ,

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 [...]

Tags: , , ,

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. [...]

Tags: , , , ,

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 [...]

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 , [...]

Tags: , ,

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 [...]

Tags: , , , , ,

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 [...]

Tags: , ,

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” );

[...]

Tags: , ,

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 [...]

Tags: , ,