Wednesday, December 3, 2008

.NET Framework

.NET Framework 1.0

This is the first release of the .NET Framework. Released on February 13, 2002. Available for Windows 98, NT 4.0, 2000, and XP.


.NET Framework 1.1

This is the first major .NET Framework upgrade. It is available on its own as a redistributable package or in a software development kit, and was published on April 3, 2003. It is also part of the second release of Microsoft Visual Studio .NET (released as Visual Studio .NET 2003). This is the first version of the .NET Framework to be included as part of the Windows operating system, shipping with Windows Server 2003.

Changes since 1.0

Built-in support for mobile ASP.NET controls. Previously available as an add-on for .NET Framework, now part of the framework. 

Security changes - enable Windows Forms assemblies to execute in a semi-trusted manner from the Internet, and enable Code Access Security in ASP.NET applications. 

Built-in support for ODBC and Oracle databases. Previously available as an add-on for .NET Framework 1.0, now part of the framework. 

.NET Compact Framework - a version of the .NET Framework for small devices. 

Internet Protocol version 6 (IPv6) support. 

Numerous API changes. 


.NET Framework 2.0

Released with Visual Studio .NET 2005, Microsoft SQL Server 2005, and BizTalk 2006.


The 2.0 Redistributable Package can be downloaded for free from Microsoft, and was published on 2006-01-22. 

The 2.0 Software Development Kit (SDK) can be downloaded for free from Microsoft. 

It is included as part of Visual Studio 2005 and Microsoft SQL Server 2005. 

Version 2.0 is the last version with support for Windows 2000, Windows 98 and Windows Me. 

It shipped with Windows Server 2003 R2 (not installed by default). 

Changes since 1.1

Numerous API changes. 

A new hosting API for native applications wishing to host an instance of the .NET runtime. The new API gives a fine grain control on the behavior of the runtime with regards to multithreading, memory allocation, assembly loading and more (detailed reference). It was initially developed to efficiently host the runtime in Microsoft SQL Server, which implements its own scheduler and memory manager. 

Full 64-bit support for both the x64 and the IA64 hardware platforms. 

Language support for Generics built directly into the .NET CLR. 

Many additional and improved ASP.NET web controls. 

New data controls with declarative data binding. 

New personalization features for ASP.NET, such as support for themes, skins and webparts. 

.NET Micro Framework - a version of the .NET Framework related to the Smart Personal Objects Technology initiative. 

.NET Framework 3.0

.NET Framework 3.0, formerly called WinFX, [11] includes a new set of managed code APIs that are an integral part of Windows Vista and Windows Server 2008 operating systems. It is also available for Windows XP SP2 and Windows Server 2003 as a download. There are no major architectural changes included with this release; .NET Framework 3.0 uses the Common Language Runtime of .NET Framework 2.0. [12] Unlike the previous major .NET releases, there was no .NET Compact Framework release made as a counterpart of this version.

.NET Framework 3.0 consists of four major new components:

Windows Presentation Foundation (WPF), formerly code-named Avalon; a new user interface subsystem and API based on XML and vector graphics, which uses 3D computer graphics hardware and Direct3D technologies. See WPF SDK for developer articles and documentation on WPF. 

Windows Communication Foundation (WCF), formerly code-named Indigo; a service-oriented messaging system which allows programs to interoperate locally or remotely similar to web services. 

Windows Workflow Foundation (WF) allows for building of task automation and integrated transactions using workflows. 

Windows CardSpace, formerly code-named InfoCard; a software component which securely stores a person's digital identities and provides a unified interface for choosing the identity for a particular transaction, such as logging in to a website. 


.NET Framework 3.5

This version of the framework uses version 2.0 of the CLR (the same model as the use of CLR 2.0 in .NET Framework 3.0). However, it installs .NET Framework 2.0 SP1, which adds some methods and properties, required for .NET Framework 3.5 features such as LINQ, to the BCL classes in .NET Framework 2.0. These changes do not affect applications written for version 2.0 of the .NET Framework.[13] 

Full support for .NET Framework 3.5 project types, as well as targeting .NET Framework 3.5 in builds, is included in Visual Studio 2008. 

The source code of the Base Class Library in this release will be released under Microsoft Reference License.[1] 

.NET Framework 3.5 SP1, codenamed "Arrowhead", will enhance support for occasionally connected applications.[14] and provide built-in support for the Microsoft ASP.NET MVC Framework.[15] 

As with .NET Framework 1.0 and 2.0, a new .NET Compact Framework 3.5 will be released in tandem with this update, to provide e.g. LINQ, HTTP compression, and improved audio support for mobile devices. 

Officially Released To Manufacturing (RTM) on 19 November 2007. 


Microsoft .NET Framework 3.5 contains many new features building incrementally upon .NET Framework 2.0 and 3.0, and includes .NET Framework 2.0 service pack 1 and .NET Framework 3.0 service pack 1.

Overview

.NET Framework 3.5 builds incrementally on the new features added in .NET Framework 3.0. For example, feature sets in Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF) and Windows CardSpace. In addition, .NET Framework 3.5 contains a number of new features in several technology areas which have been added as new assemblies to avoid breaking changes. They include the following: 

Deep integration of Language Integrated Query (LINQ) and data awareness. This new feature will let you write code written in LINQ-enabled languages to filter, enumerate, and create projections of several types of SQL data, collections, XML, and DataSets by using the same syntax. 

ASP.NET AJAX lets you create more efficient, more interactive, and highly-personalized Web experiences that work across all the most popular browsers. 

New Web protocol support for building WCF services including AJAX, JSON, REST, POX, RSS, ATOM, and several new WS-* standards. 

Full tooling support in Visual Studio 2008 for WF, WCF, and WPF, including the new workflow-enabled services technology. 

New classes in .NET Framework 3.5 base class library (BCL) that address many common customer requests. 

Changes

New language features in C# 3.0 and VB.NET 9.0 compiler 

Adds support for expression trees and lambda methods 

Extension methods 

Anonymous types with static type inference 

Language Integrated Query (LINQ) along with its various providers 

LINQ to Objects 

LINQ to XML 

LINQ to SQL 

Paging support for ADO.NET 

ADO.NET synchronization API to synchronize local caches and server side datastores 

Asynchronous network I/O API[16] 

Peer-to-peer networking stack, including a managed PNRP resolver[17] 

Managed wrappers for WMI and Active Directory APIs[18] 

Enhancements to the WCF and WF runtimes that let WCF work with POX and JSON data, as well as expose WF workflows as WCF services.[19] 

Support for HTTP pipelining and syndication feeds.[19] 

ASP.NET AJAX is included


Icon in address bar

First, you have to create a logo for your site; a very tiny logo to be specific. The size of the logo should be 16x16 pixels and it should be saved as a Windows icon file (logo.ico for example). If your image editor doesn't support saving files in Windows icon format, you can use the following online tool or download an icon editor from a shareware site.


Method 1 
This is the easiest method to implement and it will work regardless of the particular page on your site users choose to add to their favorites list. Don't worry if you don't have access to your web site root; take a look at the next method. 
 
If you have access to the root of your web site, simply save your icon file as "favicon.ico" there. For example, if your web site is "www.vigil.co.in", your icon file should be available at "www.vigil.co.in/favicon.ico". The web browser will look for favicon.ico whenever your site is added to the favorites list and if it is found at the root of your web site, the icon will appear next to the link to your site. 
 
Method 2 
If you don't have access to the root of your web site, you have to add the following tag to your web page so that the browser will know where to look for your icon. Unlike before, this time you can save the icon under any name ending with ".ico" We'll use the name "logo.ico" and assume that your web site is under the directory "~your_directory". 
 
LINK REL="SHORTCUT ICON" HREF="/~your_directory/logo.ico"
Listing #1 : HTML code. Download logo.htm (0.2 KB). 
 
     NOTE: Above tag should be inserted in-between the and tags.
 
By the way, you can specify multiple logos for multiple pages using the second method. Simply save your icons using unique names, such as logo1.ico, logo2.ico, logo3.ico for example, and replace "logo.ico" in the above HTML code with the name of the icon you want to use for any particular page.

To block copy, paste etc on web input box

input name="CorporateSignonPassword" style="width:100px" type=password AUTOCOMPLETE="off" onClick="showRegret()" onCopy="return false" onDrag="return false" onDrop="return false" onPaste="return false"

function showRegret()
{
/*If the error message should pop-up (when the service is down) the value of the variable downtime should be like
var downtime="19:25 AM/PM" test

FME should only change the time along with AM/PM . DONOT give space between 2 double quotes if the service is running

If the service is up and running the value of the variable downtime should be
var downtime="19:25 AM/PM"

*/

//-- The downtime below is to be edited start--------
var downtime="";

//-- The downtime above to be edited ends--------
if (downtime =="")
{
return flag;
}

XCOPY

You can use the xcopy command from a command line --

Below is the options for xcopy

Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
                           [/EXCLUDE:file1[+file2][+file3]...]

  source       Specifies the file(s) to copy.
  destination  Specifies the location and/or name of new files.
  /A           Copies only files with the archive attribute set,
               doesn't change the attribute.
  /M           Copies only files with the archive attribute set,
               turns off the archive attribute.
  /D:m-d-y     Copies files changed on or after the specified date.
               If no date is given, copies only those files whose
               source time is newer than the destination time.
  /EXCLUDE:file1[+file2][+file3]...
               Specifies a list of files containing strings.  Each string
               should be in a separate line in the files.  When any of the
               strings match any part of the absolute path of the file to be
               copied, that file will be excluded from being copied.  For
               example, specifying a string like \obj\ or .obj will exclude
               all files underneath the directory obj or all files with the
               .obj extension respectively.
  /P           Prompts you before creating each destination file.
  /S           Copies directories and subdirectories except empty ones.
  /E           Copies directories and subdirectories, including empty ones.
               Same as /S /E. May be used to modify /T.
  /V           Verifies each new file.
  /W           Prompts you to press a key before copying.
  /C           Continues copying even if errors occur.
  /I           If destination does not exist and copying more than one file,
               assumes that destination must be a directory.
  /Q           Does not display file names while copying.
  /F           Displays full source and destination file names while copying.
  /L           Displays files that would be copied.
  /G           Allows the copying of encrypted files to destination that does
               not support encryption.
  /H           Copies hidden and system files also.
  /R           Overwrites read-only files.
  /T           Creates directory structure, but does not copy files. Does not
               include empty directories or subdirectories. /T /E includes
               empty directories and subdirectories.
  /U           Copies only files that already exist in destination.
  /K           Copies attributes. Normal Xcopy will reset read-only attributes.
  /N           Copies using the generated short names.
  /O           Copies file ownership and ACL information.
  /X           Copies file audit settings (implies /O).
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
  /Z           Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.

Enable trace in ASP.NET page

To enable trace on the ASP.NET page, add the below line to the config file
trace enabled="true" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true"