Here is a list of all the short cuts in Visual Studio 2005

Hi,

I always felt a need for having all the short cuts in Visual studio at one place so that they can be referred whenever required. These short cuts are really helpful and make the application development really very fast. The fact that you do not have to use your mouse when you are writing some code.

For an example whenever we want to do search we go to the find window and type the word there and start the find process. But we can do it more easily by selecting word to find (If we have it written somewhere) and pressing ctrl & F. Also I would suggest the Incremental search in Visual studio 2005 which searches the document as and when we are writing. Use ctrl & I to get the incremental search

Continued...

A new blog JUST-LIKE-THAT

Hi

I have recently also started a new website (A sub domain http://JustLikeThat.Vikramlakhotia.com). This is also a blogging Site but using the wordpress software Implementation.

I know first question on your mind will be why another blogging site and that too with another software and not the custom blogging software that I have made myself. Well the answer is both simple and difficult to explain.

First of all let me tell you what the blogging site is about. The new blogging site will not feature anything related to Programming, Dot Net, SQL Server etc. Its going to be fun, information sports, music, video’s etc.

Continued...

New feature of C Sharp “Implicitly Typed local variable”

Hi

Another of the new feature of C# 3.0 is the implicitly typed local variable. For this a new keyword var is introduced in the C# list of keyword. The keyword allows the developer to declare variables without specifying its type. Hence the following lines will compile in C Sharp 3.0(This will not compile in C Sharp 2.0 or below).

Continued...

New “Extension Methods” feature in C sharp 3.0

Hi

Extension Methods are really cool new features in the C# 3.0. With extension methods we can attach new function to the existing (even the value types). It does not matter if do not have access to the type, we can still add new methods to the type.

For example I can write an extension method to trace, response or print every element of the collection. This is very simple to be done. Here is the example of the trace method.

public static class Ext

{

            public static void Trace<T>(this ICollection<T> col)

            {

Continued...

Using Asp.Net Ajax extension for incremental page display

Hi

In this post I will show you how to use the incremental Page fetch using the Asp.Net Ajax. This is very important if you want the user to e shown some part of the page and then to populate the other part of the page subsequently. With the help of the Asp.Net Ajax this is very easy.

First we need to create a web service that will return the Html that will be displayed. For this Example I have taken a web service that returns a string that will be displayed in the div. Here we must remember to put the System.Web.Script.Services.ScriptService() with the class since the webservice will be accesed by the javascript proxy.

Now we need to write some javascript code in the page were the data will be fetched after the page load and displayed.

Continued...

New Language feature in Csharp 3.0 – Extension method

Hi

Another new language feature of the C# 3.0 is the extension method. This feature will also be available on the next version of the VB.Net. Extension methods allow developer to add new methods to a public contract of an existing CLR type without sub classing the type.

Extension Methods help blend the flexibility of "duck typing" support popular within dynamic languages today with the performance and compile-time validation of strongly typed languages.

A simple example of the Extension method would be to add some validation to the string class. Lets say when we want to validate that a string is a valid Email or not we normally use another class with a static method to validate it. The typical example would be

string email = Request.QueryString["email"];

if ( EmailValidator.IsValid(email) ) { }
  

Continued...

SQL server 2005 AUTO_UPDATE_STATISTICS_ASYNC for updating statistics in the background

Hi

We can configure the given database to update data asynchronously in SQL server 2005. This was not possible in SQL server 2000. In SQL Server 2000 we had to update the statistics synchronously. This is till the default in SQL server 20005.

If a given query request for the update of statistics without this option set, then the query will have to wait for till the statistics are updated and then be executed.

But if set the option for AUTO_UPDATE_STATISTICS_ASYNC then the query will not wait for the update of the statistics but will execute with the current statistics and at the same time a background process will start the automatic updation of the statistics as soon as possible. This will not prevent any query request.

Continued...

New language feature in C Sharp Orcas “Automatic Properties”

Hi,

In this post I will talk about the new features of C#3.0. These new features are really helpful to develop a product fast. Today when we code with C# we are used to code string and properties for it in the class. The code is simple

Private int _age;

Public int age

{

            get{ return _age; }

            set{ _age=value; }

}

Continued...
 
Copyright © 2006 - 2008 Vikram Lakhotia