Tuesday, June 23, 2009

New Features in C# 3.0

Almost two years ago — before Visual Studio 2005 and C# 2.0 even shipped — Microsoft announced features that would be in C# 3.0. In May of 2006, they released a preview version of Visual Studio, called "Orcas," which contained early versions of C# 3.0, some Visual Basic language enhancements, and other new features. Microsoft also released the C# 3.0 Language Specification, which details the new language features.

The stated intent of the new language features is "to support the creation and use of higher-order, functional-style class libraries." To that end, the following features are introduced:

  • Implicitly typed local variables.
  • Object initializers.
  • Collection initializers.
  • Anonymous types.
  • Implicitly typed arrays.
  • Extension methods.
  • Lambda expressions.
  • Query expressions.
  • Expression trees.



New features in ASP.NET 3.5


Microsoft released ASP.NET 3.5. ASP.NET 3.5 uses the same engine as that of ASP.NET 2.0, with some extra features added on top of it. Here I m going to light on new features, I think it will be very needful to everyone.

1.ASP.NET AJAX

In ASP.NET 2.0, ASP.NET AJAX was used as an extension to it. You had to download the extensions and install it. However in ASP.NET 3.5, ASP.NET AJAX is integrated into the .NET Framework, thereby making the process of building cool user interfaces easier and intuitive.

2.New Controls

ListView:

The ListView control is quiet flexible and contains features of the Gridview, Datagrid, Repeater and similar list controls available in ASP.NET 2.0. It provides the ability to insert, delete, page (using Data Pager), sort and edit data.
DataPager:

DataPager provides paging support to the ListView control. DataPager gives you a consistent way of paging with the controls that support it.

3.LINQ

LINQ (Language Integrated Query) adds native data querying capability to C# and VB.NET along with the compiler and Intellisense support.

4.ASP.NET Merge Tool

ASP.NET 3.5 includes a new merge tool (aspnet_merge.exe). This tool lets you combine and manage assemblies created by aspnet_compiler.exe. This tool was available earlier as an add-on.

5.New Assemblies

System.Core.dll
System.Data.Linq.dll
System.Xml.Linq.dll
System.Data.DataSetExtensions.dll
System.Web.Extensions.dll


ASP.NET 2.0 - New Features

ASP.NET 2.0 improves ASP.NET by adding several new features.


Improvements in ASP.NET 2.0

ASP.NET 2.0 was designed to make web development easier and quicker.

Design goals for ASP.NET 2.0:

  • Increase productivity by removing 70% of the code
  • Use the same controls for all types of devices
  • Provide a faster and better web server platform
  • Simplify compilation and installation
  • Simplify the administration of web applications

What's New in ASP.NET 2.0?

Some of the new features in ASP.NET 2.0 are:

  • Master Pages, Themes, and Web Parts
  • Standard controls for navigation
  • Standard controls for security
  • Roles, personalization, and internationalization services
  • Improved and simplified data access controls
  • Full support for XML standards like, XHTML, XML, and WSDL
  • Improved compilation and deployment (installation)
  • Improved site management
  • New and improved development tools

The new features are described below.


Master Pages

ASP.NET didn't have a method for applying a consistent look and feel for a whole web site.

Master pages in ASP.NET 2.0 solves this problem.

A master page is a template for other pages, with shared layout and functionality. The master page defines placeholders for content pages. The result page is a combination (merge) of the master page and the content page.

Read more about master pages.


Themes

Themes is another feature of ASP.NET 2.0. Themes, or skins, allow developers to create a customized look for web applications.

Design goals for ASP.NET 2.0 themes:

  • Make it simple to customize the appearance of a site
  • Allow themes to be applied to controls, pages, and entire sites
  • Allow all visual elements to be customized

Web Parts

ASP.NET 2.0 Web Parts can provide a consistent look for a site, while still allowing user customization of style and content.

New controls:

  • Zone controls - areas on a page where the content is consistent
  • Web part controls - content areas for each zone

Navigation

ASP.NET 2.0 has built-in navigation controls like

  • Site Maps
  • Dynamic HTML menus
  • Tree Views

Security

Security is very important for protecting confidential and personal information.

In ASP.NET 2.0 the following controls has been added:

  • A Login control, which provides login functionality
  • A LoginStatus control, to control the login status
  • A LoginName control to display the current user name
  • A LoginView control, to provide different views depending on login status
  • A CreateUser wizard, to allow creation of user accounts
  • A PasswordRecovery control, to provide the "I forgot my password" functionality

Roles and Personalization

Internet communities are growing very popular.

ASP.NET 2.0 has personalization features for storing user details. This provides an easy way to customize user (and user group) properties.


Internationalization

Reaching people with different languages is important if you want to reach a larger audience.

ASP.NET 2.0 has improved support for multiple languages.


Data Access

Many web sites are data driven, using databases or XML files as data sources.

With ASP.NET this involved code, and often the same code had to be used over and over in different web pages.

A key goal of ASP.NET 2.0 was to ease the use of data sources.

ASP.NET 2.0 has new data controls, removing much of the need for programming and in-depth knowledge of data connections.


Mobility Support

The problem with Mobile devices is screen size and display capabilities.

In ASP.NET, the Microsoft Mobile Internet Toolkit (MMIT) provided this support.

In ASP.NET 2.0, MMIT is no longer needed because mobile support is built into all controls.


Images

ASP.NET 2.0 has new controls for handling images:

  • The ImageMap control - image map support
  • The DynamicImage control - image support for different browsers

These controls are important for better image display on mobile devices, like hand-held computers and cell phones.


Automatic Compilation

ASP.NET 2.0 provides automatic compilation. All files within a directory will be compiled on the first run, including support for WSDL, and XSD files.


Compiled Deployment (Installation) and Source Protection

ASP.NET 2.0 also provides pre-compilation. An entire web site can be pre-compiled. This provides an easy way to deploy (upload to a server) compiled applications, and because only compiled files are deployed, the source code is protected.


Site Management

ASP.NET 2.0 has three new features for web site configuration and management:

  • New local management console
  • New programmable management functions (API)
  • New web-based management tool

Development Tools

With ASP.NET Visual Studio.NET was released with project and design features targeted at corporate developers.

With ASP.NET 2.0, Visual Studio 2005 was released.

Key design features for Visual Studio 2005 include:

  • Support for the features described above
  • Upload files from anywhere (FTP, File System, Front Page....)
  • No project files, allowing code to be manipulated outside Visual Studio
  • Integrated Web Site Administration Tool
  • No "build" step - ability to compile on first run

Visual Web Developer is a new free ASP.NET 2.0 tool for non-corporate developers who don't have access to Visual Studio.NET.

HTML DOM :

What is the HTML DOM?

The HTML DOM is:

  • A Document Object Model for HTML
  • A standard programming interface for HTML
  • Platform- and language-independent
  • A W3C standard

The HTML DOM defines the objects and properties of all HTML elements, and the methods (interface) to access them.

In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements.




Define DHTML :

DHTML is NOT a Language

DHTML stands for Dynamic HTML.

DHTML is NOT a language or a web standard.

DHTML is a TERM used to describe the technologies used to make web pages dynamic and interactive.

To most people DHTML means the combination of HTML, JavaScript, DOM, and CSS.

According to the World Wide Web Consortium (W3C):
"Dynamic HTML is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated.

DHTML Technologies

Below is a listing of DHTML technologies.

HTML 4

The W3C HTML 4 standard has rich support for dynamic content:

  • HTML supports JavaScript
  • HTML supports the Document Object Model (DOM)
  • HTML supports HTML Events
  • HTML supports Cascading Style Sheets (CSS)

DHTML is about using these features to create dynamic and interactive web pages.

JavaScript

JavaScript is the scripting standard for HTML.

DHTML is about using JavaScript to control, access and manipulate HTML elements.

You can read more about this in the next chapter of this tutorial.

HTML DOM

The HTML DOM is the W3C standard Document Object Model for HTML.

The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate them.

DHTML is about using the DOM to access and manipulate HTML elements.

You can read more about this in a later chapter of this tutorial.

HTML Events

The W3C HTML Event Model is a part of the HTML DOM.

It defines a standard way to handle HTML events.

DHTML is about creating web pages that reacts to (user)events.

You can read more about this in a later chapter of this tutorial.

CSS

CSS is the W3C standard style and layout model for HTML.

CSS allows web developers to control the style and layout of web pages.

HTML 4 allows dynamic changes to CSS.

DHTML is about using JavaScript and DOM to change the style and positioning of HTML elements.

You can read more about this in a later chapter of this tutorial.


Define XML :

What is XML?

  • XML stands for EXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to carry data, not to display data
  • XML tags are not predefined. You must define your own tags
  • XML is designed to be self-descriptive
  • XML is a W3C Recommendation
The Difference Between XML and HTML

XML is not a replacement for HTML.

XML and HTML were designed with different goals:

  • XML was designed to transport and store data, with focus on what data is.
  • HTML was designed to display data, with focus on how data looks.

HTML is about displaying information, while XML is about carrying information.

XML is Just Plain Text

XML is nothing special. It is just plain text. Software that can handle plain text can also handle XML.

However, XML-aware applications can handle the XML tags specially. The functional meaning of the tags depends on the nature of the application.

Monday, June 22, 2009

Different Between SQL Server 2000 and 2005.

Feature

SQL Server 2000

Security:Owner = Schema, hard to remove old users at times

Encryption:No options built in, expensive third party options with proprietary skills required to implement properly.

High Availability Clustering or Log Shipping require Enterprise Edition. Expensive hardware.

Scalability:Limited to 2GB, 4CPUs in Standard Edition. Limited 64-bit support.

SQL Server 2005

Security Schema is separate. Better granularity in easily controlling security. Logins can be authenticated by certificates.

Encryption Encryption and key management build in.

High Availability Clustering, Database Mirroring or Log Shipping available in Standard Edition. Database Mirroring can use cheap hardware.

Scalability 4 CPU, no RAM limit in Standard Edition. More 64-bit options offer chances for consolidation.

Differences :

1. In SQL Server 2000 the Query Analyzer and Enterprise Manager are seperate,whereas in SQL Server 2005 both were combined as Management Studio.

2. In Sql 2005,the new datatype XML is used,whereas in Sql 2000 there is no such datatype

3. In Sql server2000 we can create 65,535 databases,whereas in Sql server2005 2(pow(20))-1 databases can be created.


1 UI Differences -Tools Analysis Services Manager (ASM)
Query Analyzer (QA)
Enterprise Manager (EM)
Report Manager
Business Intelligence Development Studio (BIDS)
SQL Server Management Studio (SSMS)

2 UI Differences -Organizing Grain
ASM "Database" BIDS "Solution"and "Project"

3 UI Differences - Data Modeling Must be connected to do anything
Single Data Source, Single Fact Table per Cube
Cannot directly rename entities -must resort to database views to rename entities and for logical abstraction
Must resort to virtual cubes for mixed fact granularity
No support for arbitrary SQL as a Data Source
Data Source Views (DSVs) provide an abstraction layer
Between Database and Cubes, DSV can contain tables drawn from multiple heterogeneous
In data source , once DSV established, need not be connected to work with cube models
Can rename entities, provide annotations
Named Queries -arbitrary SQL as Data Source
DSVs can be shared between cubes and DTS for improved consistency and administration

4 UI Differences -Cube Construction Manually intensive, even with Wizard
Must know the underlying schema well
Intellicube

5 UI Differences -Deployment Archive/Restore Database
CAB files
No configuration variables for Data Source connectivity, etc.
Elaborate Configuration and Deployment Model

6 UI Differences - Metadata Storage
There isa repository
Defaults to Access -can upgrade to SQL Server
Cannot really be source-controlled
There is not a repository
Metadata stored in XML documents, can easily be source-controlled
Team development is facilitated

7 Architecture -Unified Dimensional Model
Distinct difference between flat file, relational, cube and web-service data sources
Unified Dimensional Model (UDM) integrates all types of data sources -data consumer sees single, multi-dimensional interface
Allows the user model to be greatly enriched
Provides high performance queries supporting interactive analysis, even over huge data volumes
Allows business rules to be captured in the model to support richer analysis
Supports writeback and 'closing the loop'

8 Architecture –Dimensions
Role-playing requires multiple Dimensions
Role-playing is a new Dimension type
Reference Dimension
Many-to-many Dimension

9 Architecture –Hierarchies One and only one Hierarchy per Dimension
Attributes are either part of Hierarchy or are Properties
Zero to multiple Hierarchies in same Dimension