Malaika Consultants LLC

Step1: Create a Web Form

by Jane Thomson 1. February 2011 13:05

Just like any other technology, you will also find new terminologies in the ASP.NET as well. For a practical example, the word used to mention the web page is ASP.NET is known as a web form and it is the most important terminology of ASP.NET as it’s a central object in the language of ASP.NET. At a first look, the web forms look just like static HTML pages. However, they also contain .NET specific components in addition to the HTML elements as well as some code which executes on the server’s machine.

 

Web Forms

 

Each web form contains a tag <form runat = “server”>, which holds the ASP.NET specific elements in it which makes the page. However, there is no support for multiple forms. The actual structure of a simple web form is given below:

 

<%@ Page Language="language" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
     "http://www.abc.com/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<script runat="server"> 
… some code …

</script>

 

<html xmlns="http://www.abc.com/2003/xhtml"> 
<head runat="server"> 
 <title> Title of the Page</title> 
</head> 
<body> 
 <form id="form id" runat="server"> 
   … UI elements… 
 </form> 
</body> 
</html>

 

In order to programmatically access and change the data, the classs System.Web.UI.Page is being used. It is mandatory to define this class in the code file of a web form. In case, user is not generating a specific code file for a web form (when all the code is written in the file .aspx), the class is still gets generated, it is just that user is not able to see that.

 

In ASP.NET, wide ranges of UI elements are available to use in a web form which also includes the static HTML code. But, a user shall use the elements for which either values can be generated or changed. Such elements are known as controls in ASP.NET. There are numerous controls available in the ASP.NET as listed below:

 

  1. Master Pages
  2. Web User Controls
  3. Web Server Controls
  4. HTML Server Controls

 

We will learn about such controls in the coming chapters.

 

For Step 2 please click here.

Tags:

Comments

2/1/2011 6:45:06 PM #

Step1: Create a Web Form

You've been kicked (a good thing) - Trackback from DotNetKicks.com

DotNetKicks.com | Reply

3/26/2011 9:49:49 PM #

I'm new to the blogging universe and now I am not sure what cms is best? Friends have advised me to try out Blogger. Would you say the latest release of BlogEngine is better?

Cholesterinwerte Zu Hoch United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



::: | © Malaika Consultants LLC | :::

Malaika Consultants LLC

Malaika Consultants LLC is a custom software development consulting firm located in Cary (Raleigh Durham Research Triangle AKA RTP area ) North Carolina. We offer our expert consulting services in the Microsoft .NET and related technologies. Our mission is to partner with you and ensure the success of your project. We have a team in the USA that will help you with your Information Technology needs and we strive to be truly "Your Information Technology Angels"

We are offering 1 hour of free consulting -- ASP.NET, SQL Server, IIS, anything. Contact us to get your free consulting

Recent Comments

Comment RSS