Exforsys.com
 

Sponsored Links

 

ASP.NET Tutorials

 
Home Tutorials ASP.NET
 

Introduction to ASP.NET with C#

 

Introduction: In this tutorial we will introduce the new technology for building websites. This new technology is known as Asp.net. Asp.net allows the developer to build applications faster. This is achieved due to the fast that Asp.net makes use of the rich class libraries provided by Microsoft. net framework.



Classic Asp:

Asp, which is now more commonly known as Classic Asp was used extensively in 1990's. The idea of creating dynamic pages and linking them with database was the main purpose of classic Asp. Asp used html controls for user interaction. Apart from the good features available in Asp programming, it also lacks in some of the major areas. These areas include clean coding as asp pages were incline pages and all the business logic as well as the interface was coded in a single page. This produces many problem when the code had to be updated or modified. Asp pages also lacked performance and scalability which were fixed in Asp.net. Lets see what Asp.net technology has to offer a developer to build dynamic pages much faster.

Asp.net Web Applications:



Asp.net is based on the .NET framework for building web applications. Since Asp.net is a part of the Microsoft. NET Framework it has the ability to take advantage of rich class libraries provided by Microsoft. The question is that why should one use Asp.net and not use classic asp or any other web programming technology. Here are some of the features of Asp.net that makes it the best web application technology.

Use of Controls:

Asp.net provides the developer with several controls to perform basic as well as advanced operations. Controls provided in Asp.net falls under HTML Controls, HTML Server Controls and Web Server Controls.

HTML Controls:

Html controls are the basic controls that are executed on the client machine. These controls include textbox, label , image etc. A simple example of html control can be given by the following code which renders an image.

As you see HTML controls are very easy to use but they don't provide much features. Microsoft decided to introduce HTML Server controls which extends the functionality of simple HTML Controls.

HTML Server Controls:

HTML Server Controls looks exactly like the HTML Controls with one difference that they are executed on the server rather than the client. A simple example of HTML Server controls is given below:

just add a runat server attribute with the image tag.

As you can see that the image tag or control looks exactly like the one that we have previously discussed. But it has an additional attribute which is runat. The runat attribute denotes that this is a HTML Server Control and will be executed on the Server rather than the client.

Note: src attribute in the image tag denotes the path of the image it can be "C:MyDirectorymyImage.jpg"

Web Server Controls

Web Server Controls are the most advanced controls in Asp.net. Each control comes with tons of features that allows the developer to complete the task in less time. Web Server Controls are executed on the Server. Web Server Controls include datagrid control, datalist control, calendar control and many many more.

Special Note:


When dealing with different types of controls one must always remember that when to use which control. If the control will only act as a static entity than you should always use HTML Controls. If the control will be dynamic you should use Web Server Controls.

Language Options:

Asp.net provides lets you choose the scripting language between javascript and VbScript. This is beneficial for the java programmers as well as the VB programmers since they already have the basic background of the language.
Caching features:

Asp.net also introduces caching features which increases the performance of the application. Caching allows the developer to save the recently used data in a cache variable so that if does not have to spend any time looking for it in the future when anyone requests it.

Tools:


Asp.net pages can be made in variety of tools. The most basic editor is notepad or WordPad. To make the development faster Microsoft has introduced Visual Studio development tool which lets the developer build enterprise applications in less time. There are many free tools available to build Asp.net application one of them is "WebMatrix" which can be downloaded from "www.asp.net" target="_blank" rel="nofollow".

Asp.net Web Services:

Web Services has change the way we develop applications. Sometimes its hard to grasp the idea behind the web service so I will try to make it as simple as possible. A web service is not a whole application, its a part or a component of a larger application. The basic purpose of the web service is to create a link/bridge between two different platforms and exchange data. This data is exchanged in the form of XML. XML is nothing but text which is in structured form that is why it's recognized by all platforms.

Developing web services is not any different than developing web applications. You can easily create a web service with the same knowledge you have for Asp.net applications.

References:

"www.msdn.microsoft.com
"www.asp.net



Read Next: ASP.NET with C# Training Course Outline



 

 

Comments


DoOoOoOody said:

  Hi,i\'m facing a sort of troubles here,none of the link for the examples appears for me !! plz tell me what\'s wrong.
June 26, 2006, 5:34 am

kavithashyam said:

  Hai this page is quite goods for beginners to understand basically the differences between asp and asp.net and
the introduction
Thanks very much :)
October 10, 2006, 9:25 am

Amitava Ghosh said:

  It's Nice
November 14, 2006, 4:05 am

pandey.connect said:

  hi plz provide some examples
December 25, 2006, 6:47 am

vithalcrao said:

  hi provide examples
January 8, 2007, 4:57 am

mpurushotham said:

  I want Asp notes.
March 17, 2007, 4:44 am

bobby21 said:

  sites like this have to be devolped..........
amazing work by all to devolop this site
thanks alot
March 18, 2007, 2:29 pm

Hiiiiiiiiiii said:

  Hi
iam working with ASP.NET...
I have a doubt regarding database connection of SQL server...if any of u can plz help me
April 24, 2007, 12:29 pm

Mukeshp said:

  Good for beginners.
May 13, 2007, 6:09 am

Sandeep Gupta said:

  This article was good for the begineer.
June 5, 2007, 8:10 am

Manesh said:

  Can I create an HMI using asp.net pages???
June 26, 2007, 5:01 am

ganmscworld said:

  this site is very useful to learn..
July 4, 2007, 2:31 am

Bubbloo said:

  It's really lookibg very informative.Any Beginner Going with this can get to his goal
July 11, 2007, 3:42 pm

Juhi Bhavsar said:

  I like that in this site you cover all contant of asp.net
July 13, 2007, 7:54 am

nazia said:

  i am about to complete my ASP.net cource , i am told that without ASP.net software i cant develop ASP.net pages
pls let me know how i can to that just in NOTEPAD using HTML codes
Can i have all that securities & facilities that are available in ASP.net by just working in HTML
If Yes then how ?
Please guide me in this ,
I'll be waiting for your response.
Thanking you
Nazia
July 22, 2007, 8:31 am

seema0183 said:

  only written explanation is given, provide some examples with design so that it can be understand in very good manner
September 17, 2007, 2:46 am

pratish said:

  nice to see here all information about asp.net, thanku veri much
September 25, 2007, 11:37 pm

Syed Arif said:

  Thanks for giving clear defination specially for web services.......
October 26, 2007, 9:18 am

kountinya said:

  only written explanation is given, provide some examples with design so that it can be understand in very good manner
May 2, 2008, 10:24 pm

aditi (lucknow) said:

  suggest me the book or provide me a notes.........on c#..with with some example.........develop a really ther is a problem in database connectivity
July 19, 2008, 9:22 am

Rituraj pandey said:

  this all information is so good for a basic asp.net learners . and i am impressed in this text because now i am a s/w devlopper through this text .
August 11, 2008, 7:30 am

vishal soni said:

  ya its good for beginers and beneficial too
November 27, 2008, 6:51 am

Rohan said:

  Please suggest me a book for complite study of ASp.NET and C# also
Please provide examples for all above content..
November 28, 2008, 2:07 am

mades jacob said:

  it is good beginners of programmers.
December 31, 2008, 5:10 am

Marca Yupage said:

  Given the frequency with which Microsoft obsoletes their own platform features, blog entries become errata frequently.

Comments to this page have time/date stamps, but posting does not!

Please fix it, otherwise it's a waste of time (no pun intended).
February 23, 2009, 11:54 am

Masanam said:

  I want know how html coding include into the C# file
December 27, 2009, 9:15 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2010 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape