WEB ENGINEERING-II
USING ASP.NET
Adnan Amin (ICT Lecturer / Software Programmer)
Overview
Web Form
ASP.net Controls
HTML Controls
HTML Server Controls
The Code Behind the page.
Web Form
Web form are ASP.net pages within an ASP.net
application.
The extension of Web form of ASP.net using VB.net is
*.aspx;
The APS.net web form is separated into two logical
area.
1. HTML template.
2. Code behind the web form.
1.HTML Template Web Form conti.
HTML template usually contains
1. The design layout,
2. Contents and
3. Controls
i. HTML Controls.
ii. HTML Server Controls.
The HTML template creates the user interface using
web form controls.
HTML Controls
HTML Controls runs on Client side.
The old ASP were using HTML
controls.
You only need to write runat=“server”
to transform the HTML control into an
HTML Server control. or
Right click on html control then click on
runat from menu.
HTML Control (textbox)
<input type=“text”>
HTML Server Control
<input type=“textbox” runat=“server”>
HTML Server Controls
Server Controls are run on the server.
ASP.net Server Controls are
Form controls
Data Validation controls
Web parts
Mobile Controls
Login Controls
Navigations Controls
2.Code Behind the Web forms Web Form conti.
With the web forms, the server programs are written in
a separate file known as the code behind the web form.
The Code behind the page contains programming
routines that are directly related to the various server
controls on the web form.
Just the server controls can interact with the code behind
the page.
The code behind the page may be written in any ASP.net
compatible language, including vb.net, C# and J#.
It has the same filename as the web form with extension
varies with programming language. (*.cs and *.vb)
Thank You !
References
www.geoamins.com
Introduction to ASP.net <2nd Edition> by Kathleen Kalata