ASP and ASP.NET Tutorials


In this guide, we'll show you how to use ASP.NET and how it compares to other technologies like PHP or Java. We'll also cover some of the more advanced features in .NET and what they mean for your application's performance.

Understanding ASP

ASP is a server-side scripting language that can be used to create dynamic web pages. You may have heard of ASP, but you might not know what it is or how it works. In this article, we'll explain everything about ASP so that you can get up and running with your first website in no time!

Using Forms

Forms are used to collect input, display output and send data to the server.

ASP Objects

ASP objects are used to build dynamic web pages. They're similar to classes in .NET, and they use the ActiveX Data Objects (ADO) library. You can create an object using tag, or by using code like this:

In this example, we create a new instance of Model class named “mymodel”. The new keyword tells Visual Basic that we want it to do something new with this item; in this case, create an instance of the class named MyModel.

If you want all your pages to share common functionality such as data validation controls and reporting features then why not write them once rather than having multiple files?

Mailing Form Results

The mail command sends a message to the specified recipient.

mail [recipient]

Error Handling

Error handling is a critical aspect of ASP.NET programming. If you don't handle errors properly, your application will crash when it encounters an error and cannot start again until the user manually restarts the program.

To catch potential errors in your code, use Try-Catch blocks:

try { // Do something } catch (Exception e) { // Handle exception }

You can also write On Error statements that will execute if an exception occurs:

On Error GoTo MyErrorCode . . . # End Code Block