Lab Manual Intro To ASP - Net, HTML
Lab Manual Intro To ASP - Net, HTML
Sciences
Lab Manual
“Introduction to ASP.net, HTML”
Table of Contents
1 Objective............................................................................................................. 2
2 Task Distribution................................................................................................. 2
3 HTML..................................................................................................................3
1.1. What is HTML?............................................................................................ 3
1.2. HTML Tags...................................................................................................3
1.3. Web Browsers............................................................................................... 3
1.4. HTML ELEMENTS..................................................................................... 4
1.5. HTML Headings........................................................................................... 4
4 Creating ASP.Net Web form using Visual Studio............................................... 4
4.1 ASP CONTROLS (Similar behavior to HTML elements)...........................8
4.2 Keypoints.................................................................................................... 10
5 Exercise............................................................................................................. 13
Page 1
FAST NU Lahore Database Systems CL 219
1 Objective
The purpose of this document is to give a practical implementation of HTML, the
whole overview of HTML tags and element, with example and live implementation
during lab. Introduction to ASP.NET, this document will answer how to create new
project? How to create new web page? And practice on various asp controls.
2 Task Distribution
Total Time 90 Minutes
Introduction 10 Minutes
HTML Elements 15 Minutes
ASP Control 15 Minutes
Exercise 45 Minutes
Page 2
FAST NU Lahore Database Systems CL 219
3 HTML
Page 3
FAST NU Lahore Database Systems CL 219
Page 4
FAST NU Lahore Database Systems CL 219
Page 5
FAST NU Lahore Database Systems CL 219
Page 6
FAST NU Lahore Database Systems CL 219
Step 3: Choose Web Form from available template and set its Name
Page 7
FAST NU Lahore Database Systems CL 219
A basic TextBox:
Page 8
FAST NU Lahore Database Systems CL 219
A password TextBox:
<asp:TextBox ID="txtPassword" TextMode="password"
runat="server"></asp:TextBox>
A multiline TextBox:
<asp:TextBox ID="txtComment" TextMode="multiline"
runat="server"></asp:TextBox>
Checkbox
<asp:CheckBox ID="chkIsStudent" runat="server" />
Radio Button
<asp:RadioButton ID="rdMale" GroupName="Gender" runat="server"
/>
<asp:RadioButton ID="rdFemale" GroupName="Gender"
runat="server" />
Dropdown List
<asp:DropDownList ID="ddlDepartment" runat="server">
<asp:ListItem Text="Select" Value="0"></asp:ListItem>
<asp:ListItem Text="Computer Science" Value="CS"></asp:ListItem>
<asp:ListItem Text="Electrical Engineering"
Value="EE"></asp:ListItem>
<asp:ListItem Text="Business Administrator"
Value="BBA"></asp:ListItem>
<asp:ListItem Text="Civil Engineering" Value="CV"></asp:ListItem>
</asp:DropDownList>
Page 9
FAST NU Lahore Database Systems CL 219
Button
<asp:Button ID="btnSave" Text="Save Form" runat="server" />
Image
Page 10
FAST NU Lahore Database Systems CL 219
SAMPLE FORM
Page 11
FAST NU Lahore Database Systems CL 219
Page 12
FAST NU Lahore Database Systems CL 219
5 Exercise
Using ASP Web form create sample page like given below.
Note: instagram logo : You can use any logo from internet.
Page 13
FAST NU Lahore Database Systems CL 219
Page 14