Home arrow ASP.NET arrow Page 3 - ASP.NET: An Introduction

ASP.NET: An Introduction

ASP.NET is not just the next version of ASP: it's the next era of web development. ASP.NET allows us to use a fully featured programming language (such as C# or VB.NET) to build web applications easily. In this article, John talks about the fundamentals of ASP.NET and some of its powerful features such as web services, the MSDN library and several learning resources.

Author Info:
By: John Rebbeck
Rating: 5 stars5 stars5 stars5 stars5 stars / 47
December 26, 2001
  1. · ASP.NET: An Introduction
  2. · ASP.NET
  3. · ASP.NET (contd.)
  4. · ASP.NET (contd.)
  5. · Conclusion

print this article

ASP.NET: An Introduction - ASP.NET (contd.)
(Page 3 of 5 )

Web Services

One great feature of ASP.NET are Web Services. Web services mean that you can literally have several pieces of your application on different servers all around the world, and the entire application will work perfectly and seamlessly. Web services can even work with normal .NET Windows applications.

For example: A lot of people would like to have a stock ticker on their web site, but not many people want to manually type in all changes to the prices. If one company (a stock broker) creates a web service and updates the stock prices periodically, then all of those people wanting the prices can use this web service to log in, run a function which grabs the current price for a chosen company, and return it. Web services can be used for so many things: news, currency exchange, login verification.. the ways in which they can be used are limited to your imagination!

Custom Controls

In ASP.NET, you can create your own custom controls, along with those already provided. A good example of a custom control is a date selector. There are so many different date formats that validation of dates can become a pain, even more so if your visitor has to type in their date 5 times before it is accepted.

Instead of getting users to enter a date manually, we can let them use a date selector containing 3 drop down lists: day, month, and year. The day list has numbers 1-31, the month list has all of the month names, and the year list has a list of numbers from 1900 to 2050. The user now selects a day, month, and year, and your control returns that value in your specified format. You can even set a default value by passing a simple mm/dd/yyyy or dd/mm/yyyy date to the control before it is rendered.

Class Library

ASP.NET includes an enormous class library which was built by Microsoft. Because this class library is so large, it encapsulates a a huge number of common functions. For example, if you wanted to retrieve data from a database and display that data in a simple grid control through classic ASP, then you'd have to write quite a lot of code.

In ASP.NET, you don't write any code to display the data: you just write the code to bind the data to an object called a DataGrid (which can be done in just a couple of lines). Then, you just have to create a reference on your page to where that DataGrid should go. The DataGrid will be rendered as a table, and will contain all of the data extracted from the database.
blog comments powered by Disqus

- How Caching Means More Ca-ching, Part 2
- How Caching Means More Ca-ching, Part 1
- Reading a Delimited File Using ASP.Net and V...
- What is .Net and Where is ASP.NET?
- An Object Driven Interface with .Net
- Create Your Own Guestbook In ASP.NET
- HTTP File Download Without User Interaction ...
- Dynamically Using Methods in ASP.NET
- Changing the Page Size Interactively in a Da...
- XML Serialization in ASP.NET
- Using Objects in ASP.NET: Part 1/2
- IE Web Controls in VB.NET
- Class Frameworks in VB .NET
- Cryptographic Objects in C#: Part 1
- Sample Chapter: Pure ASP.Net

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials