lesson_06 controls

8
WEB ENGINEERING-II USING ASP.NET Adnan Amin (ICT Lecturer / Software Programmer)

Upload: adnan-amin

Post on 08-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 1/8

WEB ENGINEERING-IIUSING ASP.NET

Adnan Amin (ICT Lecturer / Software Programmer)

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 2/8

Overview

Web Form

ASP.net Controls

HTML Controls

HTML Server Controls

The Code Behind the page.

 

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 3/8

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.

 

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 4/8

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.

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 5/8

HTML Controls

HTML Controls runs on Client side.

The old ASP were using HTMLcontrols.

You only need to write runat=“server”

to transform the HTML control into anHTML 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”>

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 6/8

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

 

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 7/8

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.netcompatible language, including vb.net, C# and J#.

It has the same filename as the web form with extensionvaries with programming language. (*.cs and *.vb)

8/7/2019 Lesson_06 Controls

http://slidepdf.com/reader/full/lesson06-controls 8/8

Thank You !

References

www.geoamins.com

Introduction to ASP.net <2nd Edition> by Kathleen Kalata