ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing

ExpertRating Home
ExpertRating Benefits
Recommend ExpertRating
Suggest More Tests
Privacy Policy
ASP Dot Net Tutorial - Index
ASP Dot Net Tutorial - Microsofts ASP.NET
ASP Dot Net Tutorial - Begining Web Forms
ASP Dot Net Tutorial - User Controls
ASP Dot Net Tutorial - ADO .NET
ASP Dot Net Tutorial - DataBinding to WebControls
ASP Dot Net Tutorial - DataList Controls
ASP Dot Net Tutorial - DataGrid Control
ASP Dot Net Tutorial - Advance Practical Examples on DataGrid
ASP Dot Net Tutorial - Working with DataSets
ASP Dot Net Tutorial - Working with XML
ASP Dot Net Tutorial - Forms Based Authentication
ASP Dot Net Tutorial - Windows Based Authentication

Online Personal Trainer Certification
Personal Trainer Certification (Spanish)
Six Sigma Certification
Find a Personal Trainer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Master Black Belt Certification
Six Sigma Green Belt Certification
Life Coach Certification
Lean Management Certification
Lean Six Sigma Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
Business Analyst Certification
SEO Certification
Online Business Writing Course & Certification
Makeup Artist Certification
Baby Sitting Course & Certification
Time Management Certification
Health Club Management Certification
Medical Coding Certification
Medical Billing Certification
Business Analysis Course
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
Event Management Certification
Test Search by Job Title
Administrative Assistant Certification
Virtual Assistant Certification
  All Online Courses


  Home > Courses, Tutorials & eBooks > ASP.NET Tutorial > Begining Web Forms

ASP.NET Tutorial - Begining Web Forms

                                                                                                                 Page 1 of 6

Web forms occupy an important and interesting concept in web development. Several basic Web controls are used to represent standard HTML form elements such as radio buttons, text boxes, and list boxes. These controls form an integral part of ASP.NET and can be primarily used in it to build user interface for Web application. ASP.NET provides programmed control over the user interface by using objects that reside on the server.

Web Forms Programming Model

Web forms pages are divided into two parts.

  • Visual elements and other is
  • Accompanying UI logic.

According to the concept both these elements differ from each other and they can be located physically anywhere desired. Typically, both the parts are found within one .aspx file.

The following Example shows a Web Form Model.

Example6: web_form_model.aspx

<%@ Page Language="VB" %>

<script runat="server">

Sub tbMessage_Change (Sender as Object, E as EventArgs)

lblMessage. Text="Hello " + tbMessage. Text

End Sub




<font size="5"></font><hr><p>

<% Response.Write ("Our Test Page<p>") %>

<form runat="server">

Please Enter Your Name:

<asp: TextBox id="tbMessage"

OnTextChanged ="tbMessage_Change" runat="server"/>

<asp: button id="btSubmit" Text="Submit"


<b><asp: label id="lblMessage" runat="server"/></b>





The output of the above example is shown below: -

A typical web form is shown in the above example. The UI is found within the HTML portion of the page, the server controls are found on line 14,15, and 16.which have properties, methods, and events that can be controlled. The UI logic that is the code that controls the UI is contained in the code declaration block i.e. on line 3 to 7.



Home  |  About Us  |  Privacy Policy  |  Site Map  |  FAQs  |  Contact Us
© ExpertRating 2015. All Rights Reserved.