ASP.NET 2.0
Microsoft’s ASP:NET 2.0 is an upgrade to the ASP.NET 2005 package of applications and user interfaces that fall under the umbrella of Visual Studio.Net 2005. The suite of applications in the .NET framework that the programmer should be familiar with includes Windows forms user interfaces, Compact and ASP.NET framework, C#, j#, VB.NET (Visual Basic) and developer tools such as Integrated Development Environment (IDE).
To successfully pursue a career in IT professionally, programmers and developers must be well versed in their knowledge of the .NET framework, “the Windows Component that supports the building and running of windows applications and XML Web services”. The component provides a consistent object-oriented programming environment for the user, when stored both locally and remotely. This allows for the scripted or interpreted environment to perform well within an assortment of .NET applications and platforms.
Tutorials and training information about ASP.NET 2.0 includes Application Development in Visual Studio.NET, in-depth examination of SQL Server 2005 framework support and a detailed section on Web Pages, Layout and Controls. Beginner, Intermediate and Advanced users can benefit from the ASP.NET 2.0 tutorials and training articles which are written from both developer and the user point of view.
Getting started with ASP.NET 2.0 ASP.NET 2005 is part of a whole suite of applications and user interfaces that are packed under the banner of Visual Studio.NET 2005. Code named as Whidbey, the entire package is still being tested and the final version is slotted to be released late this year. The suite includes the .NET Framework; user interfaces like Windows forms, ASP.NET and Compact framework; Official languages like C#, J# and Visual Basic.NET; Integrated Development Environment (IDE) like Visual Studio.NET. Scope of the tutorial This tutorial series proposes to cover in detail the new features introduced in ASP.NET; improvements…
.NET Framework Fundamentals Understanding the .NET Framework .NET framework is a Windows Component that supports the building and running of windows applications and XML Web services. The purpose of the component is to provide the user with a consistent object oriented programming environment whether the code is stored locally or remotely. It aims to minimize software deployment and versioning conflicts and also promote safe execution of code including codes executed by trusted third parties. It is directed towards eliminating performance problems of scripted or interpreted environments. The effort is to make developer experience consistent across a variety of applications and…
.NET Framework Tools In order to facilitate ease of development and deployment of applications, the .NET framework provides the user with a number of tools. All these tools can be run from the command line with the exception of the Assembly Cache Viewer (Shfusion.dll) and the Microsoft CLR Debugger (DbgCLR.exe). In order to ensure that these tools function optimally the user has to set the Path, Include and Lib environment variables by running SDKVars.bat in the /v.2.0/Bin directory and executing it in the command shell. The different types of tools provided by the .NET framework are Configuration and Deployment tools,…
What’s New in the .NET Framework 2.0? In this tutorial you will learn about new feature in .NET Framework 2.0. Various aspects such as Support for 64 bit platform application development, Access control list support (ACL), ADO.NET, ASP.NET, Authenticated streams,COM Interop Service Enhancements, Console Class Additions, Data Protection API, Detecting changes in Network connectivity, Disjunctive Demands, Distributed Computing, EventLog Enhancements, Expanded Certificate Management, FTP Support, Generics and Generic Collection, I/O Enhancements and several other feature are discussed here below. The Microsoft.NET framework of Version 2.0 extends the .NET framework of Version 1.1. It was developed under the code name ‘Whidbey”….
Introduction to Visual Studio.NET In this tutorial we shall proceed with a brief Introduction to Visual Studio.NET and also discuss three Versions of Visual Studio.NET – The first version-VS.NET, VS.NET 2003, Visual Studio 2005 VS.NET 2005. The fine lines of distinction between programming disciplines, has been blurred with the introduction of .NET framework. The functionalities encapsulated by the .NET class library, has created common programming interfaces which has impacted the process of development of applications greatly. One of the major areas of change is in Web development. Prior to .NET, Web application programming was all about ASP. The script based…
Installing Visual Studio.NET 2.0 In this tutorial you will learn the procedure for Installing Visual Studio.NET 2.0 starting with minimum system requirements, runtime setup and side by side installation. In this tutorial we shall be using Visual Studio.NET 2.0 regular edition. The minimum requirements for installing this version are: PC with Pentium II 600 MHz or higher processor . Microsoft Windows 2000 with Service Pack 3 or later, Microsoft XP Professional with Service Pack I or later or Microsoft Windows Server 2003. . 128 MB of RAM or above . 2.5 GB of available hard disk space on the system…
ASP.NET Managing Membership and Roles In this tutorial you will learn about Anonymous Users, Managing Membership and Roles, The Programming Interface – Properties and Methods, Setting up the Membership, The Membership Provider, The ProviderBase Class, The MembershipProviderBase Class, Managing Roles, The Role Class and The Role Provider. Anonymous Users Before actually moving into the topic of creating roles and managing users, we need to talk on how to deal with Anonymous users ASP.NET 2.0. The Beta version provides a new feature that assigns an identity to the anonymous users. The authentication and authorization process of the application is not impacted….
Working with Visual Studio.NET Web Applications In this tutorial – Introducing Visual Studio.NET Web Applications, You will learn How Web Applications Work, Choose a Language for creation. Microsoft’s commitment to rapid application development is reflected in Visual Studio 2005 2.0. The .NET framework has blurred the lines between the different programming disciplines and made application development of any kind pleasurable. Web application development specifically has received a boost. With Visual Studio.NET 2005, the facilities available for the Web application developer has been enhanced multifold. Web applications are of four types. The Web Applications use the power of the Client server…
What’s New in ASP.NET 2.0 In this tutorial you will learn What’s New in ASP.NET 2.0, New Controls, Master Pages, Site Navigation, User Management, Personilizaiton, Themes and Skins, Mobile Devices, Site Counters, Configuration and Deployment What’s New in ASP.NET 2.0 The team led by Scott Gurthie focused upon the following enhancements to ASP.NET: 1. Improving Development productivity by reducing the lines of code to be written by 70%. Most of the frequently required code is now available out of the box. 2. Making ASP.NET easier to use with existing devices like Web browsers, PDAs, Cell phones and so on with…
Creating an ASP.NET Application In this tutorial you will learn how to Create an ASP.NET 2.0 Application, Examining the Interface, The Hello World Application, Designing Web Forms, The Embedded Web Server and Important folders in the ASP.NET 2.0 Applications. Visual Studio.NET is a user friendly way to create web sites. It provides for multiple ways of opening websites. Frontpage Server extensions, FTP or direct file system path can be used to open the web pages. The inbuilt web server Cassini makes IIS server optional for testing and debugging of applications. ASP.NET 2.0 uses the dynamic compilation engine to compile…
ASP.NET Code Directory In this tutorial you will having a deeper look at the Code Directory, the Code Beside Model and the evolution of the Code Behind model, learn about Partial Classes, Sharing Source components, Creating a Component, you will learn how to create a Application_Code folder, to create a component in the Application_Code folder and use a component. Having a deeper look at the Code Directory As mentioned in the earlier section of this tutorial the Code directory is one of the significant folders of the ASP.NET application. It contains the reusable components that are automatically compiled and…
ASP.NET Page Object Model In this tutorial you will learn about Page Object Model, the Attributes of the @Page directive, the properties of the Page Class, Methods of the Page Class, Page Class Events and the Page Scripting Object Model. The page class is represented by the .aspx file in ASP.NET 2.0. It provides the basic behaviour for all pages. A class is dynamically created when the .aspx file is parsed and this class inherits from the page class. In ASP.NET 2.0, the page class allows code separation. It invokes the IHTTPHandler interface to service the requests for the…
ASP.NET Server Controls In this tutorial you will go through an overview of server controls, adaptive rendering, control state, new controls such as Multiview control, Wizard control, BulletedList, DynamicImage and the FileUpload Control. One of the significant efforts of ASP.NET 2.0 is to provide developers facilities to build applications for a range of devices including devices that may be created in the future. The software defines a common architecture for Web controls and adapters and unifies the functionality of the mobiles with a guarantee that the developer has not to learn any new programming techniques or API. The process of…
ASP.NET Creating Content for Master Page In this tutorial you will learn how to create contents for a Master Page, create a home page, add contents to home page and finally test the home page. Creating Content for the Master Page The template for the content is now ready. We shall proceed to define content for the master page by creating an ASP.NET page that is attached to the Master Page. Content pages are specialized forms of .aspx pages that only contain the content. Content can be text or controls. We shall create a content page for the Home…
ASP.NET Referencing Master Page Members In this tutorial you will learn about reference Master Page Mebers, add property to Master Page, expose Master Properties. Referencing Master Page Members Members of the Master page can be referenced by content pages. These members can be methods, properties or controls. The constraint for property reference is theat the property has to be declared as public members of the master page. They could be public page scope variables, public propertis and public methods. Let us work out a simple example. The developer wants to set the title of a content page or to add…
ASP.NET Working With Master Pages In this Tutorial you will learn how to work with Master Pages, create a file system on website, create a Master Page, create layout table for the Master Page, To add static content to the master page and add a content placeholder. Creating a Simple Master Page As pointed out in the preceding section “Working with Master Pages”, Master pages can be simple or complex. We shall start by creating a simple master page and then go on to understanding the complexities that can be interwoven. A master page can be created using the Windows…
ASP.NET Changing Master Pages Dynamically In this tutorial you will learn how to make a copy of the master page, To add buttons for selecting an alternate master page, To write code to dynamically select the master page and test the dynamic master pages. Changing Master Pages Dynamically Dynamically changing master pages is possible. The code can be used to set the master for the content. This may especially be useful when users want to select from several different layouts to set their preferences. To see how this is done let us add another Master page to our website and…
ASP.NET Creating Nested Master Pages In this tutorial you will learn how master pages can be nested within one main master page, build and example nested master page with the help of sample code. In the preceding sections we had seen how to create simple master and content pages. We also examined how we can reference members of a master page from content pages and how to use different masters with a single content page. In this section we shall see how master pages can be nested within one main master page. When one master page references another as its…
ASP.NET Working with Web Parts In this tutorial you will learn about Understanding Web Parts, Building pages with Web Parts, Web Part Display Modes, Advantages of using WebParts, To create a new Web site using WebParts, The Web.config File and Adding the WebPartManager Control. Understanding Web Parts Websites and portals show a large amount of content and content personalization has assumed importance over the years. Users accessing content rich websites experience a desire to see only such content as is of immediate relevance to them. Successful websites capitalize on this need and allow the user personalize his experience. The crux…
ASP.NET Adding Web Parts at Run Time In this tutorial you will learn how to add Web Parts at run time and To test the Web Parts catalog. To allow users to add Web Parts at run time 1. Open the Start.aspx page, and switch to Design view. 2. From the WebParts tab of the Toolbox, drag a CatalogZone control into the right column of the table, beneath the EditorZone control. 3. Both controls can be in the same table cell because they will not be displayed at the same time. 4. In the Properties pane, assign the string Add…
ASP.NET : Using Web Parts and Controls in Web Pages In this tutorial you will learn how To create a page for containing Web Parts controls, To create content for the main zone and To create a user control. In the preceding section we examined the concepts of Web Parts and the features of the controls that have been provided by ASP.NET 2.0 for rapidly creating web portals that are elegant and well laid out. We also theoretically appreciated the immense potential of allowing users to customize the content they wish to see. In this section we shall create a…
ASP.NET Web Pages and Layout In this tutorial you will learn how to Enable Users to Edit Pages and Change Layout, To create a user control that enables changing page layout, To enable users to change the layout and To test layout changes. Enabling Users to Edit Pages and Change Layout As stated earlier in this tutorial, Web parts facilitates the editing of Layout by users. Users can drag and drop controls by dragging them from one zone to another and the characteristics of controls can be edited. This functionality is inbuilt into the basic control set of the Web…
ASP.NET Personalization: User Profiles and Themes In this tutorial you will learn about Personalization – User Profiles and Themes, Inbuilt providers in ASP.NET 2.0 and also Create and execute a Shopping cart application with Personalization features. Surfers would love to see on the website the content which is customized to their needs. ASP.NET offers a personalization feature which enables users to do just that. Personalization is a storage system that manages all the data related to users of the application. It integrates seamlessly with SQL server or Microsoft Access or any other database that developer’s wishes to use. A little…
ASP.NET Data Access In this tutorial you will learn about new features in Data Access, Data binding, The XPathBinder, XPathBinder.Eval, Connection Strings, The factory class, Batch operations, Asynchronous Commands, SQL Bulk Copy, ColumnMappings, Enhancements to SQL Server 2005, ADO.NET Class Enhancements, DataTableReader, Serializing a DataTable, The XMLSerializer, RemotingFormat and Managing Views of Data. ASP.NET 2.0 performs a kind of magic. It pushes ADO.NET objects to the backend and leaves the programmer free to use the access code inbuilt into a bunch of data source controls. Microsoft encapsulates a significant amount of code in the new Data source controls. In this…
ASP.NET State Management in ASP.NET 2.0 In this tutorial you will learn about new features included in ASP.NET 2.0 for State Management. The Control State, differences in handling View State and Control State, Implementing the control state. Initialization and loading of a controls private state. Web pages are constantly constructed and destroyed with round trips to the server. However, state maintenance is an essential aspect of deploying web pages on a stateless protocol such as HTTP. State management is defined as a process of maintaining state and page information over multiple page requests. State maintenance could be a feature of…
ASP.NET Customizing the Session State Mechanism In this tutorial you will learn about Extending the Session State Mechanism, The Default Session State Mechanism and its customization, Customizing the Session State Module and Writing a custom session state module Extending the Session State Mechanism The stateless HTTP protocol treats each page request independently and the server is unaware of the variable values of the earlier request. The session state is a dictionary based API that is used by developers to store user specific data for the duration of the session. The session state is enabled by default for all ASP.NET applications….
ASP.NET State Management And Caching In this tutorial you will learn about Cache Dependency, SqlCache Dependency, New methods added to the CacheDependency Class and The process of writing the cache dependency file. The performance of any web application is incumbent upon the amount of server side processing that is required. Web servers must handle individual requests or multiple requests, give quick response time and reduce the load on intermediate and backend data systems. Output caching is regarded as one of the means of reducing server workload. It allows ASP.NET to send its most recent copy of the page to the…
ASP.NET Configuring Page-Level Caching In this tutorial you will learn how to configure Page-Level Caching. Page directive and Duration attribute. Configuring Page-Level Caching 1. In Visual Web Developer, switch to Design view. 2. Drag a Label control to your page, leaving the default name of Label1. 3. Switch to Design view. 4. Double-click the surface. 5. A stubbed out method will be created for you named Page_Load. 6. Add the following highlighted code to the method: ………………void Page_Load(Object sender, System.EventArgs e) ………………{ ……………………….Label1.Text = System.DateTime.Now.ToString(); ………………} 7. Press CTRL+F5 to run the page. 8. Close the browser. Close the browser….
ASP.NET : Setting Application-Level Caching In this tutorial you will learn how to set application-level caching in ASP.NET 2.0. To Configure and Use Parameter-Level Caching and also the steps involved to cache based on parameters. Setting Application-Level Caching To configure application-level caching 1. In Solution Explorer, select the node representing your Web site. 2. Right-click, and then click Add New Item. 3. In the Add Item dialog box, click Web Configuration File, and then click Add. 4. You do not need to provide a name. The file must be named Web.config. 5. Add the following XML within the existing <…
ASP.NET Security In this tutorial you will learn about ASP.NET 2.0 Security, The Security Architecture of ASP.NET 2.0, The security infrastructure and subsystem relationships of the ASP.NET and the sequence of events that occur when a authentication is sought. When we talk of ‘security’ we are basically acknowledging that there is a possibility of ‘vulnerability’. The developer and the Administrator need to focus on various threats and mitigation techniques and security concepts including principals, authorities, services, security identifiers, tokens, logon sessions, window stations, access control and so on… Security of websites is a very critical and complex issue that needs…
September 2, 2005
-
Exforsys
- Comments:
ASP.NET Forms Authentication In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 – Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls. Forms authentication has been made easier with a supply of readymade tools for repetitive tasks. ASP.NET 2.0 encapsulates all the best practices and provides built in solutions to virtually all the tasks relating to user databases, roles cached in cookies, controls for capturing user name and passwords, and administration tools for managing users and roles. Additionally ASP.NET 2.0 supports cookie-less semantics. Cookie-less…
September 2, 2005
-
Exforsys
- Comments:
ASP.NET Data Source Object Model In this tutorial you will learn about Data Source Object Model in ASP.NET 2.0, the Rationale of DataSource components, Data Source Control Internals, Tabular DataSource Controls, Hierarchical Data Source Controls, The SqlDataSource Control: Usage and Data Source Parameters. The Rationale of DataSource components The ASP.NET 2.0 data source model provides support for a declarative model of data binding. The data source components return and accept data from familiar streams such as SQL, XML, DataSet and from custom formats too. The schema is very approachable, time saving and simplifies the binding mechanism. The codeless data binding…
September 6, 2005
-
Exforsys
- Comments:
SqlDataSource Control In this tutorial you will learn about The Data Source Wizard – SqlDataSource Control, the process of setting up the data source. The Data Source Wizard DataSource controls enable programmers to declaratively connect data sources to the user interface. The logic for retrieving the data from the source is inbuilt into the control. For instance when a DropDownList is added to the form the developer is prompted to connect to the DataSource. On Clicking ‘connect to DataSource’, the wizard is started to guide the user through the process of setting up the data source. The user has to…
September 6, 2005
-
Exforsys
- Comments:
ASP.NET Data Bound Controls In this tutorial you will learn about Data Bound Controls – The Hierarchy of Data Bound Controls, Simple Data Bound Controls, Composite DataBound Controls and Hierarchical Data Bound Controls. The Hierarchy of Data Bound Controls Data Bound controls are controls that are bound to data sources. Traditionally the DataGrid is the principal data bound control in ASP.NET 1.x. Though DataGrid is still supported, ASP.NET 2.0 introduces three new controls—GridView, FormView and DetailsView. Unlike in ASP.NET 1.x, all controls descend from the BaseDataBoundControl class. It has two basic child classes DataBoundControl and HierarchicalDataBoundControl. While TreeView and Menu…
September 6, 2005
-
Exforsys
- Comments:
ASP.NET GridView Control In this tutorial you will learn about GridView Control, features of the GridView control, GridView supported field types and Creating a GridView control on a Page. The GridView control is the official successor to the DataGrid control of yesteryears. It is no longer listed in the toolbox, even though it is supported by ASP.NET 2.0. All new projects would automatically use the GridView control. Though both these controls have a similar look and feel they are implemented differently as already explained in the earlier section of this tutorial. However, to reiterate some of the features of the…
September 10, 2005
-
Exforsys
- Comments:
ASP.NET GridView Filtering In this tutorial you will learn how to add a filter to a Grid View Control, To modify the query with a parameterized filter, the WHERE Clause, Parameter properties, Parameter Value Editor and To test filtering. Adding Filtering If the developer wants to display only selected data in a page, the query for the SqlDataSource control will have to be modified. The first step in this process is to add a Textbox control where the users can enter the filter condition. The filter condition then becomes the parameterized filter (WHERE clause). 1. In the Toolbox, from the…
September 10, 2005
-
Exforsys
- Comments:
Adding Sorting and Paging in GridView In this tutorial you will learn adding sorting and paging in a GridView Control, Implement Two Column Sorting, Create Code for Custom Sorting, Editing the GridView control data, Deleting Displayed Records, Inserting Records and Using Templates. Adding Sorting and Paging Sorting and paging can be added to the GridView control without writing any code. 1. In Design view, right-click the GridView control, and then click Show Smart Tag. 2. On the GridView Tasks menu, select the Enable Sorting box. 3. The column headings in the GridView control change to links. 4. On the GridView…
September 10, 2005
-
Exforsys
- Comments:
ASP.NET Using a Grid to Display Detail Information In this tutorial you will learn how to use a GridView Control to display the details of the item selected in the DropDown list and test the page. We shall now use a GridView to display the details of the item selected in the DropDown list. 1. Switch to or open the Default.aspx page (or the page you have been working with), and switch to Design view. 2. From the Data group of the Toolbox, drag a GridView control onto the page. 3. In the smart tag panel, from the Connect to…
September 13, 2005
-
Exforsys
- Comments:
ASP.NET : DataBound Controls – Details View In this tutorial you will learn DetailView DataBound Control, To create a file system Web site, Connecting to SQL Server, Use a Drop-Down List as the Master and To test the drop-down list. The DetailsView is a control that is complementary to the GridView control. It has been introduced in ASP.NET 2.0 to provide an ability to work with a single record or row from an associated data source. The default view of this control is vertical with each column of the record displayed on a line of its own. It is used…
September 13, 2005
-
Exforsys
- Comments:
ASP.NET : Displaying Master-Detail Data on the Same Page In this tutorial you will learn how to display Master-Detail Data on the same page, To display the master records, To configure a query to display related records and To test the page Data from related tables can be displayed on one page. The master table data is displayed in a grid and users can select individual rows. When they select a row, one or more details of records are displayed I a scrollable control elsewhere on the page. We shall use the StudentMaster as the master table and the CourseDetails…
September 13, 2005
-
Exforsys
- Comments:
Displaying Master-Detail Data on Separate Pages In this tutorial you will learn how to display Master-Detail Data on Separate Pages, create the details page, test the pages and Allow Editing, Deleting, and Inserting Using a DetailsView DataBound control. A variation of the GridView and DetailsView control is the display on separate pages. Each record has an hyperlink which enables them to navigate to a second page where they can view the detail records in a DetailsView control 1. Add a new page to the Web site and name it MasterCourses.aspx. 2. Switch to Design view. 3. Type Courses in the…
September 16, 2005
-
Exforsys
- Comments:
ASP.NET Creating Web Wizards In this tutorial you will learn about Rich Controls and Services, Creating Web Wizards, Working with the Wizard Control, Editing Wizard Steps, Adding a Completion Step, To edit the completion step, To show the user’s data and Testing Wizard Control. Rich Controls and Services ASP.NET 2.0 comes packaged with a number of goodies. A rich set of controls and services are a bonus to both the developer and the end user. Wizards, image generators and site navigation functions and counters are a few features that have been added. In this lesson we shall be looking in…
September 16, 2005
-
Exforsys
- Comments:
ASP.NET Dynamic Image control In this tutorial you will learn how to create Dynamic Image Control, DynamicImage Control Properties and Custom Parameters. The DynamicImage control derives from the DynamicImageBase which is in turn derived from Image. This control acquires image bytes from varied sources and renders them to image capable devices using an internal normalization process. It stores the images in the System.Drawing.Image object and is cached in ASP.NET Cache with a randomly generated key. The HTML generates a < img > tag. The CachedImageService.axd URL is a built in HTTP handler which retrieves the image from the cache object…
September 16, 2005
-
Exforsys
- Comments:
ASP.NET Advanced Site Functionality In this tutorial you will learn advanced site functionality, Enhanced Page Framework, To create the Web.Sitemap file, Tracking Traffic with Site Counters and Going Mobile. Enhanced Page Framework The advanced functionalities offered by ASP.NET include site navigation and site counters. The built in navigation has three components: 1. Site Structure which is a programming interface that lists the hierarchical structure of the Website. The site map object exposes this interface using the components provided by the Site Map Provider. The default data store is usually a root level xml file named app.sitemap. 2. Site Navigation is…
September 16, 2005
-
Exforsys
- Comments:
Application development in .NET Client Side Application Development Client applications are applications that run on the client system-or the desktop of the user. They are closest to the traditional windows based applications and they display forms or windows on the desktop enabling the user perform predefined tasks. Word processors and spread sheets are examples of client applications that employ menus, GUI elements and access local resources such as printers and scanners. A different kind of Client application is the ActiveX component (now deployed as Windows Forms control) that is displayed as an Internet web page. These applications are executed…
November 21, 2007
-
Exforsys
- Comments: