Allow Numbers Only Java Script Code

Add Script in .aspx
function isNumberKey(evt) {
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
        return false;
else
        return true;
}

Write in .cs Page Load
Txt_Number.Attributes.Add("onkeypress", "return isNumberKey(event);");

Create new column using existing columns in table (SQL Server Query)

First, we need to create a column in our table like 'newCol'
then we can use these query to insert data in to newCol using existing one

update tableName set newCol= left(oldCol,1)
It will insert only first left char of existing column into newCol

update tableName set newCol = right(oldCol,(LEN(oldCol)-2))
It will leave first two char from left and insert remainning data into newCol
 
Like this we can manipulate above query with our requirement

Javascript function to validate full name


Call a popup div using JQuery

Step 1: you need to refer this JQuery.js file in your page.

you can download it or refer it or can refer directly from sites.
Step 2: need to create a div in your page inside the html tag (prerfer to create it in bottom).

Step 3: use this JQuery code to call popup div on any object click.

General Regular Expressions.

Some General Regular Expressions are:

for more details, please refer:
http://www.regexlib.com

Credit Card Validation's Regular Expression

Regular Expression For Credit Cards (Like: VISA, MasterCard, American Express, Diners Club, enRoute, Discover and JCB)

ADD Attribute\Class to Server Controls

Simple Example To Add Attribute\Class to Server Controls using JQuery:

Fibonacci Series


Factorial Logic


Linked List Program in C:

Structure defination of linked list:

First node creation:

Add in last:

Add between:

Display all nodes:

Reverse linked list:

enjoy--- :)

.Net Versions Details

Version
Version Number
Visual Studio
Default in Windows
1
1.0.3705.0
Visual Studio .NET

1.1
1.1.4322.573
Visual Studio .NET 2003
Windows Server 2003
2
2.0.50727.42
Visual Studio 2005
Windows Server 2003 R2
3
3.0.4506.30

Windows Vista, Windows Server 2008
3.5
3.5.21022.8
Visual Studio 2008
Windows 7, Windows Server 2008 R2
4
4.0.30319.1
Visual Studio 2010

4.5
4.5.?????.?
Visual Studio 11
Windows 8, Windows Server 8

The NET Framework was first released in beta in November 2000 and development continues today. Each version of the framework has betas, final versions, service packs, and patches associated with it.
For detailed release and changes, refer:

ASP .Net Complete Page Life Cycle

Stages and corresponding events in the life cycle of the ASP.NET page cycle: