SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Diploma in Information Technology
Module X: E-Commerce & ASP.NET
Rasan Samarasinghe
ESOFT Computer Studies (pvt) Ltd.
No 68/1, Main Street, Pallegama, Embilipitiya.
Contents
1. What is a Business ?
2. E-Business
3. Application of E-Businesses
4. What is E-Commerce ?
5. E-Commerce Models
6. Business to Business (B2B)
7. Business to Consumer (B2C)
8. Consumer to Business (C2B)
9. Business to Employee (B2E)
10. Consumer to Consumer (C2C)
11. Shopping Carts
12. Types of Web Pages
13. Creating Dynamic Web Pages
14. What is ASP.NET ?
15. What you can do with ASP.NET ?
16. How ASP.NET Works ?
17. Features of ASP.NET
18. ASP.NET Web Forms
19. Controls in Web Forms
20. HTML Controls
21. Server Controls
22. HTML Server Controls
23. Event Handlers
24. The Page Load Event
25. IsPostBack Property
26. Navigation by using Response Class
27. Passing Values from Page to Another
28. Data Binding to a Drop Down List
What is a Business ?
An organization that provides products or
services to customers who want or need them.
E-Business
Electronic business is application of
information and communication technologies
to improve your business processes.
Application of E-Businesses
Customer Relationship
Management (CRM)
Enterprise Resource Planning
(ERP)
Document Management
System (DMS)
Human Resources
Management (HRM)
Internet shop
Supply chain
management
Online marketing
Online Transactions
VoIP
Content Management
System
E-mail
Voicemail
Web Conferencing
Digital work flows
Internal business systems
Electronic
Commerce
Enterprise
communication
and collaboration
What is E-Commerce ?
Electronic Commerce is the buying and selling
products or services over electronic systems
such as the internet and other computer
networks.
E-Commerce Models
• Business to Business (B2B)
• Business to Consumer (B2C)
• Consumer to Business (C2B)
• Business to Employee (B2E)
• Consumer to Consumer (C2C)
Business to Business (B2B)
Transacting between businesses, such as
between a manufacturer and a wholesaler, or
between a wholesaler and a retailer.
Business to Consumer (B2C)
This is refers to when businesses selling their
products or services to the customer.
Consumer to Business (C2B)
In C2B consumers can offer products and
services to companies and the companies pay
them.
Business to Employee (B2E)
Application of an intra business network which
allows companies to provide products or
services to their employees.
Consumer to Consumer (C2C)
Involves the transactions between consumers
through some third party.
Shopping Carts
• A shopping cart is a piece of
web application software.
• It acts as an online store's
catalog and ordering process.
• It allowing consumers to
select goods, review what
they have selected, and
purchase them.
Types of Web Pages
• Static Web Pages
• Dynamic Web Pages
Types of Web Pages
Static web pages contain the
same prebuilt content each
time the page is loaded.
Dynamic web pages contain
server side or client side code
which allows the server to
generate unique content each
time the page is loaded.
Static Web Pages
Dynamic Web Pages
Creating Dynamic Web Pages
• Client Side Scripting
• Server Side Scripting
Client Side Scripting
Client side scripting enables you to develop web
pages that can dynamically respond to the user
input without having an interact with web
server.
Server Side Scripting
Server side scripting provides dynamic content
to users based on the information stored in a
remote location such as a back end database.
What is ASP.NET ?
ASP.NET is a server-side Web application
framework designed for Web development to
produce dynamic Web pages.
What you can do with ASP.NET ?
ASP.NET was developed by Microsoft to allow
programmers to build dynamic web sites, web
applications and web services.
How ASP.NET Works ?
1. When a browser requests an asp.net file, IIS passes the
request to the ASP.NET Engine on the server.
2. Then asp.net engine read the file line by line and execute
the scripts in the file.
3. Finally the ASP.NET file is returned to the browser as a
plain HTML file.
.ASPX
Compiled
Code
Request (http://www.website.com)
Response (website page)
IIS Server
Features of ASP.NET
Compiled Code
Enriched Tool Support
Power and Flexibility
Simplicity
Manageability, Scalability and Security
ASP.NET Web Forms
• Web Forms is an ASP.NET programming model,
with event driven web pages written as a
combination of HTML, server controls, and server
code.
• Web Forms are compiled and executed on the
server, which generates the HTML that displays
the web pages.
• All server controls must appear within a <form>
tag in the Web Form.
Controls in Web Forms
We use several type of controls in Web Forms
• HTML Controls
• Server Controls
• HTML Server Controls
HTML Controls
These are the basic HTML elements.
Some of them you know…
<p>this is a paragraph</p>
<a href=“http://google.com”>Google</a>
<img src=“images/Car.jpg” />
Server Controls
Server controls are tags that are understood by
the server.
The syntax of a Web server control is:
<asp:control_name id="some_id"
runat="server" />
Button, Label, Calendar, HyperLink, Etc.
HTML Server Controls
To make HTML elements programmable like a
server control, add a runat="server" attribute
to the HTML element.
This attribute indicates that the element should
be treated as a server control.
<img scr=“images/Car.jpg” id=“img1”
runat=“server”/>
Event Handlers
An Event Handler is a subroutine that executes
code for a given event.
Examples:
When a Button clicks
When an item selects from a ListBox
When a page loading
The Page Load Event
The page Load event is triggered every time
when a page loads.
protected void Page_Load(object sender, EventArgs e)
{
}
IsPostBack Property
Gets a value that indicates whether the page is being
rendered for the first time or is being loaded in
response to a postback.
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
Response.Write(“Hi");
}
}
Navigation by using Response Class
The redirect method on Response class use to
redirect the user to another web page.
protected void btnGo_Click(object sender, EventArgs e)
{
Response.Redirect(“AboutUs.aspx”);
}
Passing Values from Page to Another
Roshan|Name: Enter
Welcome Roshan
Welcome.aspx
Main.aspx
Passing Values from Page to Another
protected void btnEnter_Click(object sender, EventArgs e)
{
Response.Redirect(“Main.aspx?name=" + txtName.Text);
}
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Welcome " + Request.QueryString["name"]);
}
Welcome.aspx
Main.aspx
Passing Values from Page to Another
protected void btnEnter_Click(object sender, EventArgs e)
{
Session["name"] = txtName.Text;
Response.Redirect(“Main.aspx");
}
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Welcome " + Session["name"].ToString());
}
Welcome.aspx
Main.aspx
Data Binding to a Drop Down List
SqlConnection con = new SqlConnection("Data Source=.SQLEXPRESS;
Initial Catalog=studentdb; Integrated Security=true");
protected void Page_Load(object sender, EventArgs e)
{
con.Open();
SqlDataAdapter da = new SqlDataAdapter(“SELECT * FROM tblStudent",
con);
DataSet ds = new DataSet();
da.Fill(ds, "tblst");
DropDownList1.DataSource = ds;
DropDownList1.DataValueField = "ID";
DropDownList1.DataTextField = "Name";
DropDownList1.DataBind();
con.Close();
}
The End
http://twitter.com/rasansmn

Weitere ähnliche Inhalte

Was ist angesagt?

Manual versus Automatic Submission
Manual versus Automatic SubmissionManual versus Automatic Submission
Manual versus Automatic SubmissionClifton Alex
 
Building Modern Web Apps with AngularJS
Building Modern Web Apps with AngularJSBuilding Modern Web Apps with AngularJS
Building Modern Web Apps with AngularJSRaveen Perera
 
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...Frédéric Harper
 
SharePoint 2010 Client Object Model
SharePoint 2010 Client Object ModelSharePoint 2010 Client Object Model
SharePoint 2010 Client Object ModelG. Scott Singleton
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)Keshab Nath
 
Openkapow At Mashup Camp 5
Openkapow At Mashup Camp 5Openkapow At Mashup Camp 5
Openkapow At Mashup Camp 5Andreas Krohn
 
Integrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio LightswitchIntegrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio LightswitchRob Windsor
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...SharePoint Saturday NY
 

Was ist angesagt? (20)

Atlas Php
Atlas PhpAtlas Php
Atlas Php
 
Web controls
Web controlsWeb controls
Web controls
 
Ajax
AjaxAjax
Ajax
 
contentful_sec
contentful_seccontentful_sec
contentful_sec
 
Manual versus Automatic Submission
Manual versus Automatic SubmissionManual versus Automatic Submission
Manual versus Automatic Submission
 
Building Modern Web Apps with AngularJS
Building Modern Web Apps with AngularJSBuilding Modern Web Apps with AngularJS
Building Modern Web Apps with AngularJS
 
Ajax workshop
Ajax workshopAjax workshop
Ajax workshop
 
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
 
SharePoint 2010 Client Object Model
SharePoint 2010 Client Object ModelSharePoint 2010 Client Object Model
SharePoint 2010 Client Object Model
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
 
Webdevelopment
WebdevelopmentWebdevelopment
Webdevelopment
 
Openkapow At Mashup Camp 5
Openkapow At Mashup Camp 5Openkapow At Mashup Camp 5
Openkapow At Mashup Camp 5
 
Ajax
AjaxAjax
Ajax
 
Ajax
AjaxAjax
Ajax
 
Integrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio LightswitchIntegrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio Lightswitch
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
 
Learn ASP
Learn ASPLearn ASP
Learn ASP
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Why ruby on rails
Why ruby on railsWhy ruby on rails
Why ruby on rails
 

Andere mochten auch

DITEC - Expose yourself to Internet & E-mail (second update)
DITEC - Expose yourself to Internet & E-mail (second update) DITEC - Expose yourself to Internet & E-mail (second update)
DITEC - Expose yourself to Internet & E-mail (second update) Rasan Samarasinghe
 
DIWE - Introduction to Web Technologies
DIWE - Introduction to Web TechnologiesDIWE - Introduction to Web Technologies
DIWE - Introduction to Web TechnologiesRasan Samarasinghe
 
DITEC - Expose yourself to Internet & E-mail (updated)
DITEC - Expose yourself to Internet & E-mail (updated)DITEC - Expose yourself to Internet & E-mail (updated)
DITEC - Expose yourself to Internet & E-mail (updated)Rasan Samarasinghe
 
DITEC - Expose yourself to Internet & E-mail
DITEC - Expose yourself to Internet & E-mailDITEC - Expose yourself to Internet & E-mail
DITEC - Expose yourself to Internet & E-mailRasan Samarasinghe
 
DITEC - Programming with C#.NET
DITEC - Programming with C#.NETDITEC - Programming with C#.NET
DITEC - Programming with C#.NETRasan Samarasinghe
 
DISE - Windows Based Application Development in C#
DISE - Windows Based Application Development in C#DISE - Windows Based Application Development in C#
DISE - Windows Based Application Development in C#Rasan Samarasinghe
 
DISE - Introduction to Software Engineering
DISE - Introduction to Software EngineeringDISE - Introduction to Software Engineering
DISE - Introduction to Software EngineeringRasan Samarasinghe
 
Esoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingEsoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingRasan Samarasinghe
 
DISE - Windows Based Application Development in Java
DISE - Windows Based Application Development in JavaDISE - Windows Based Application Development in Java
DISE - Windows Based Application Development in JavaRasan Samarasinghe
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Monitoring web application response times, a new approach
Monitoring web application response times, a new approachMonitoring web application response times, a new approach
Monitoring web application response times, a new approachMark Friedman
 
DITEC - Fundamentals in Networking
DITEC - Fundamentals in NetworkingDITEC - Fundamentals in Networking
DITEC - Fundamentals in NetworkingRasan Samarasinghe
 
DISE - Software Testing and Quality Management
DISE - Software Testing and Quality ManagementDISE - Software Testing and Quality Management
DISE - Software Testing and Quality ManagementRasan Samarasinghe
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the TrenchesASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the TrenchesHabeeb Rushdan
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netSHADAB ALI
 

Andere mochten auch (20)

DITEC - Programming with Java
DITEC - Programming with JavaDITEC - Programming with Java
DITEC - Programming with Java
 
DITEC - Expose yourself to Internet & E-mail (second update)
DITEC - Expose yourself to Internet & E-mail (second update) DITEC - Expose yourself to Internet & E-mail (second update)
DITEC - Expose yourself to Internet & E-mail (second update)
 
DITEC - Software Engineering
DITEC - Software EngineeringDITEC - Software Engineering
DITEC - Software Engineering
 
DIWE - Introduction to Web Technologies
DIWE - Introduction to Web TechnologiesDIWE - Introduction to Web Technologies
DIWE - Introduction to Web Technologies
 
DITEC - Expose yourself to Internet & E-mail (updated)
DITEC - Expose yourself to Internet & E-mail (updated)DITEC - Expose yourself to Internet & E-mail (updated)
DITEC - Expose yourself to Internet & E-mail (updated)
 
DITEC - Expose yourself to Internet & E-mail
DITEC - Expose yourself to Internet & E-mailDITEC - Expose yourself to Internet & E-mail
DITEC - Expose yourself to Internet & E-mail
 
DITEC - Programming with C#.NET
DITEC - Programming with C#.NETDITEC - Programming with C#.NET
DITEC - Programming with C#.NET
 
DISE - Windows Based Application Development in C#
DISE - Windows Based Application Development in C#DISE - Windows Based Application Development in C#
DISE - Windows Based Application Development in C#
 
DISE - Introduction to Software Engineering
DISE - Introduction to Software EngineeringDISE - Introduction to Software Engineering
DISE - Introduction to Software Engineering
 
DISE - Programming Concepts
DISE - Programming ConceptsDISE - Programming Concepts
DISE - Programming Concepts
 
DISE - OOAD Using UML
DISE - OOAD Using UMLDISE - OOAD Using UML
DISE - OOAD Using UML
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
 
Esoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingEsoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programming
 
DISE - Windows Based Application Development in Java
DISE - Windows Based Application Development in JavaDISE - Windows Based Application Development in Java
DISE - Windows Based Application Development in Java
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Monitoring web application response times, a new approach
Monitoring web application response times, a new approachMonitoring web application response times, a new approach
Monitoring web application response times, a new approach
 
DITEC - Fundamentals in Networking
DITEC - Fundamentals in NetworkingDITEC - Fundamentals in Networking
DITEC - Fundamentals in Networking
 
DISE - Software Testing and Quality Management
DISE - Software Testing and Quality ManagementDISE - Software Testing and Quality Management
DISE - Software Testing and Quality Management
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the TrenchesASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the Trenches
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 

Ähnlich wie E-Commerce & ASP.NET Module

02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02Vivek chan
 
Asp interview Question and Answer
Asp interview Question and Answer Asp interview Question and Answer
Asp interview Question and Answer home
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1Neeraj Mathur
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaJignesh Aakoliya
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19Vivek chan
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showThe complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showSubhas Malik
 
Asp.net server controls
Asp.net server controlsAsp.net server controls
Asp.net server controlsRaed Aldahdooh
 
9781423903055 ppt ch08
9781423903055 ppt ch089781423903055 ppt ch08
9781423903055 ppt ch08临枫 盖
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application ArchitectureMadonnaLamin1
 
Architecting Microservices in .Net
Architecting Microservices in .NetArchitecting Microservices in .Net
Architecting Microservices in .NetRichard Banks
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04Vivek chan
 
Microservice Websites (microXchg 2017)
Microservice Websites (microXchg 2017)Microservice Websites (microXchg 2017)
Microservice Websites (microXchg 2017)Gustaf Nilsson Kotte
 
Final_Poster
Final_PosterFinal_Poster
Final_PosterAccenture
 

Ähnlich wie E-Commerce & ASP.NET Module (20)

ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
Asp
AspAsp
Asp
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
Asp interview Question and Answer
Asp interview Question and Answer Asp interview Question and Answer
Asp interview Question and Answer
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
Ajax Ppt 1
Ajax Ppt 1Ajax Ppt 1
Ajax Ppt 1
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showThe complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
 
Asp.net server controls
Asp.net server controlsAsp.net server controls
Asp.net server controls
 
Startups without Servers
Startups without ServersStartups without Servers
Startups without Servers
 
9781423903055 ppt ch08
9781423903055 ppt ch089781423903055 ppt ch08
9781423903055 ppt ch08
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application Architecture
 
Architecting Microservices in .Net
Architecting Microservices in .NetArchitecting Microservices in .Net
Architecting Microservices in .Net
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Microservice Websites (microXchg 2017)
Microservice Websites (microXchg 2017)Microservice Websites (microXchg 2017)
Microservice Websites (microXchg 2017)
 
Beyond The MVC
Beyond The MVCBeyond The MVC
Beyond The MVC
 
Final_Poster
Final_PosterFinal_Poster
Final_Poster
 
Final_Poster
Final_PosterFinal_Poster
Final_Poster
 

Mehr von Rasan Samarasinghe

Managing the under performance in projects.pptx
Managing the under performance in projects.pptxManaging the under performance in projects.pptx
Managing the under performance in projects.pptxRasan Samarasinghe
 
Agile project management with scrum
Agile project management with scrumAgile project management with scrum
Agile project management with scrumRasan Samarasinghe
 
Application of Unified Modelling Language
Application of Unified Modelling LanguageApplication of Unified Modelling Language
Application of Unified Modelling LanguageRasan Samarasinghe
 
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIAdvanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIRasan Samarasinghe
 
Advanced Web Development in PHP - Understanding Project Development Methodolo...
Advanced Web Development in PHP - Understanding Project Development Methodolo...Advanced Web Development in PHP - Understanding Project Development Methodolo...
Advanced Web Development in PHP - Understanding Project Development Methodolo...Rasan Samarasinghe
 
Advanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with GitAdvanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with GitRasan Samarasinghe
 
DIWE - Working with MySQL Databases
DIWE - Working with MySQL DatabasesDIWE - Working with MySQL Databases
DIWE - Working with MySQL DatabasesRasan Samarasinghe
 
DIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image ManipulationDIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image ManipulationRasan Samarasinghe
 
DIWE - Programming with JavaScript
DIWE - Programming with JavaScriptDIWE - Programming with JavaScript
DIWE - Programming with JavaScriptRasan Samarasinghe
 
DIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web DesigningDIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web DesigningRasan Samarasinghe
 
DIWE - Multimedia Technologies
DIWE - Multimedia TechnologiesDIWE - Multimedia Technologies
DIWE - Multimedia TechnologiesRasan Samarasinghe
 
Esoft Metro Campus - Programming with C++
Esoft Metro Campus - Programming with C++Esoft Metro Campus - Programming with C++
Esoft Metro Campus - Programming with C++Rasan Samarasinghe
 
Esoft Metro Campus - Certificate in java basics
Esoft Metro Campus - Certificate in java basicsEsoft Metro Campus - Certificate in java basics
Esoft Metro Campus - Certificate in java basicsRasan Samarasinghe
 
DISE - Introduction to Project Management
DISE - Introduction to Project ManagementDISE - Introduction to Project Management
DISE - Introduction to Project ManagementRasan Samarasinghe
 

Mehr von Rasan Samarasinghe (19)

Managing the under performance in projects.pptx
Managing the under performance in projects.pptxManaging the under performance in projects.pptx
Managing the under performance in projects.pptx
 
Agile project management with scrum
Agile project management with scrumAgile project management with scrum
Agile project management with scrum
 
Introduction to Agile
Introduction to AgileIntroduction to Agile
Introduction to Agile
 
IT Introduction (en)
IT Introduction (en)IT Introduction (en)
IT Introduction (en)
 
Application of Unified Modelling Language
Application of Unified Modelling LanguageApplication of Unified Modelling Language
Application of Unified Modelling Language
 
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIAdvanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST API
 
Advanced Web Development in PHP - Understanding Project Development Methodolo...
Advanced Web Development in PHP - Understanding Project Development Methodolo...Advanced Web Development in PHP - Understanding Project Development Methodolo...
Advanced Web Development in PHP - Understanding Project Development Methodolo...
 
Advanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with GitAdvanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with Git
 
DIWE - Working with MySQL Databases
DIWE - Working with MySQL DatabasesDIWE - Working with MySQL Databases
DIWE - Working with MySQL Databases
 
DIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image ManipulationDIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image Manipulation
 
DIWE - File handling with PHP
DIWE - File handling with PHPDIWE - File handling with PHP
DIWE - File handling with PHP
 
DIWE - Advanced PHP Concepts
DIWE - Advanced PHP ConceptsDIWE - Advanced PHP Concepts
DIWE - Advanced PHP Concepts
 
DIWE - Fundamentals of PHP
DIWE - Fundamentals of PHPDIWE - Fundamentals of PHP
DIWE - Fundamentals of PHP
 
DIWE - Programming with JavaScript
DIWE - Programming with JavaScriptDIWE - Programming with JavaScript
DIWE - Programming with JavaScript
 
DIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web DesigningDIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web Designing
 
DIWE - Multimedia Technologies
DIWE - Multimedia TechnologiesDIWE - Multimedia Technologies
DIWE - Multimedia Technologies
 
Esoft Metro Campus - Programming with C++
Esoft Metro Campus - Programming with C++Esoft Metro Campus - Programming with C++
Esoft Metro Campus - Programming with C++
 
Esoft Metro Campus - Certificate in java basics
Esoft Metro Campus - Certificate in java basicsEsoft Metro Campus - Certificate in java basics
Esoft Metro Campus - Certificate in java basics
 
DISE - Introduction to Project Management
DISE - Introduction to Project ManagementDISE - Introduction to Project Management
DISE - Introduction to Project Management
 

Kürzlich hochgeladen

Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 

Kürzlich hochgeladen (20)

Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 

E-Commerce & ASP.NET Module

  • 1. Diploma in Information Technology Module X: E-Commerce & ASP.NET Rasan Samarasinghe ESOFT Computer Studies (pvt) Ltd. No 68/1, Main Street, Pallegama, Embilipitiya.
  • 2. Contents 1. What is a Business ? 2. E-Business 3. Application of E-Businesses 4. What is E-Commerce ? 5. E-Commerce Models 6. Business to Business (B2B) 7. Business to Consumer (B2C) 8. Consumer to Business (C2B) 9. Business to Employee (B2E) 10. Consumer to Consumer (C2C) 11. Shopping Carts 12. Types of Web Pages 13. Creating Dynamic Web Pages 14. What is ASP.NET ? 15. What you can do with ASP.NET ? 16. How ASP.NET Works ? 17. Features of ASP.NET 18. ASP.NET Web Forms 19. Controls in Web Forms 20. HTML Controls 21. Server Controls 22. HTML Server Controls 23. Event Handlers 24. The Page Load Event 25. IsPostBack Property 26. Navigation by using Response Class 27. Passing Values from Page to Another 28. Data Binding to a Drop Down List
  • 3. What is a Business ? An organization that provides products or services to customers who want or need them.
  • 4. E-Business Electronic business is application of information and communication technologies to improve your business processes.
  • 5. Application of E-Businesses Customer Relationship Management (CRM) Enterprise Resource Planning (ERP) Document Management System (DMS) Human Resources Management (HRM) Internet shop Supply chain management Online marketing Online Transactions VoIP Content Management System E-mail Voicemail Web Conferencing Digital work flows Internal business systems Electronic Commerce Enterprise communication and collaboration
  • 6. What is E-Commerce ? Electronic Commerce is the buying and selling products or services over electronic systems such as the internet and other computer networks.
  • 7. E-Commerce Models • Business to Business (B2B) • Business to Consumer (B2C) • Consumer to Business (C2B) • Business to Employee (B2E) • Consumer to Consumer (C2C)
  • 8. Business to Business (B2B) Transacting between businesses, such as between a manufacturer and a wholesaler, or between a wholesaler and a retailer.
  • 9. Business to Consumer (B2C) This is refers to when businesses selling their products or services to the customer.
  • 10. Consumer to Business (C2B) In C2B consumers can offer products and services to companies and the companies pay them.
  • 11. Business to Employee (B2E) Application of an intra business network which allows companies to provide products or services to their employees.
  • 12. Consumer to Consumer (C2C) Involves the transactions between consumers through some third party.
  • 13. Shopping Carts • A shopping cart is a piece of web application software. • It acts as an online store's catalog and ordering process. • It allowing consumers to select goods, review what they have selected, and purchase them.
  • 14. Types of Web Pages • Static Web Pages • Dynamic Web Pages
  • 15. Types of Web Pages Static web pages contain the same prebuilt content each time the page is loaded. Dynamic web pages contain server side or client side code which allows the server to generate unique content each time the page is loaded. Static Web Pages Dynamic Web Pages
  • 16. Creating Dynamic Web Pages • Client Side Scripting • Server Side Scripting
  • 17. Client Side Scripting Client side scripting enables you to develop web pages that can dynamically respond to the user input without having an interact with web server.
  • 18. Server Side Scripting Server side scripting provides dynamic content to users based on the information stored in a remote location such as a back end database.
  • 19. What is ASP.NET ? ASP.NET is a server-side Web application framework designed for Web development to produce dynamic Web pages.
  • 20. What you can do with ASP.NET ? ASP.NET was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services.
  • 21. How ASP.NET Works ? 1. When a browser requests an asp.net file, IIS passes the request to the ASP.NET Engine on the server. 2. Then asp.net engine read the file line by line and execute the scripts in the file. 3. Finally the ASP.NET file is returned to the browser as a plain HTML file. .ASPX Compiled Code Request (http://www.website.com) Response (website page) IIS Server
  • 22. Features of ASP.NET Compiled Code Enriched Tool Support Power and Flexibility Simplicity Manageability, Scalability and Security
  • 23. ASP.NET Web Forms • Web Forms is an ASP.NET programming model, with event driven web pages written as a combination of HTML, server controls, and server code. • Web Forms are compiled and executed on the server, which generates the HTML that displays the web pages. • All server controls must appear within a <form> tag in the Web Form.
  • 24. Controls in Web Forms We use several type of controls in Web Forms • HTML Controls • Server Controls • HTML Server Controls
  • 25. HTML Controls These are the basic HTML elements. Some of them you know… <p>this is a paragraph</p> <a href=“http://google.com”>Google</a> <img src=“images/Car.jpg” />
  • 26. Server Controls Server controls are tags that are understood by the server. The syntax of a Web server control is: <asp:control_name id="some_id" runat="server" /> Button, Label, Calendar, HyperLink, Etc.
  • 27. HTML Server Controls To make HTML elements programmable like a server control, add a runat="server" attribute to the HTML element. This attribute indicates that the element should be treated as a server control. <img scr=“images/Car.jpg” id=“img1” runat=“server”/>
  • 28. Event Handlers An Event Handler is a subroutine that executes code for a given event. Examples: When a Button clicks When an item selects from a ListBox When a page loading
  • 29. The Page Load Event The page Load event is triggered every time when a page loads. protected void Page_Load(object sender, EventArgs e) { }
  • 30. IsPostBack Property Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback. protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { Response.Write(“Hi"); } }
  • 31. Navigation by using Response Class The redirect method on Response class use to redirect the user to another web page. protected void btnGo_Click(object sender, EventArgs e) { Response.Redirect(“AboutUs.aspx”); }
  • 32. Passing Values from Page to Another Roshan|Name: Enter Welcome Roshan Welcome.aspx Main.aspx
  • 33. Passing Values from Page to Another protected void btnEnter_Click(object sender, EventArgs e) { Response.Redirect(“Main.aspx?name=" + txtName.Text); } protected void Page_Load(object sender, EventArgs e) { Response.Write("Welcome " + Request.QueryString["name"]); } Welcome.aspx Main.aspx
  • 34. Passing Values from Page to Another protected void btnEnter_Click(object sender, EventArgs e) { Session["name"] = txtName.Text; Response.Redirect(“Main.aspx"); } protected void Page_Load(object sender, EventArgs e) { Response.Write("Welcome " + Session["name"].ToString()); } Welcome.aspx Main.aspx
  • 35. Data Binding to a Drop Down List SqlConnection con = new SqlConnection("Data Source=.SQLEXPRESS; Initial Catalog=studentdb; Integrated Security=true"); protected void Page_Load(object sender, EventArgs e) { con.Open(); SqlDataAdapter da = new SqlDataAdapter(“SELECT * FROM tblStudent", con); DataSet ds = new DataSet(); da.Fill(ds, "tblst"); DropDownList1.DataSource = ds; DropDownList1.DataValueField = "ID"; DropDownList1.DataTextField = "Name"; DropDownList1.DataBind(); con.Close(); }

Hinweis der Redaktion

  1. ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by on internet server. ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting. ASP.NET is a Microsoft technology. ASP stands for active server pages. ASP.NET is a program that runs inside IIS. IIS (Internet Information Server) is microsoft’s internet server. IIS comes as a free component with windows server. IIS also a part of windows 2000 and xp professional.
  2. ASP.NET is a server-side Web application framework designed for Web development to produce dynamic Web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.
  3. HTML elements in ASP.NET files are, by default, treated as text. To make these elements programmable, add a runat="server" attribute to the HTML element. This attribute indicates that the element should be treated as a server control. Note: All HTML server controls must be within a <form> tag with the runat="server" attribute! Note: ASP.NET requires that all HTML elements must be properly closed and properly nested.   HtmlAnchor Controls an <a> HTML element HtmlButton Controls a <button> HTML element HtmlForm Controls a <form> HTML element HtmlGeneric Controls other HTML element not specified by a specific HTML server control, like <body>, <div>, <span>, etc. HtmlImage Controls an <image> HTML element HtmlInputButton Controls <input type="button">, <input type="submit">, and <input type="reset"> HTML elements HtmlInputCheckBox Controls an <input type="checkbox"> HTML element HtmlInputFile Controls an <input type="file"> HTML element HtmlInputText Controls <input type="text"> and <input type="password"> HTML elements
  4. SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS; Initial Catalog=studentdb; integrated security=true"); con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from tblStudent", con); DataSet ds = new DataSet(); da.Fill(ds, "tblst"); DropDownList3.DataSource = ds; DropDownList3.DataValueField = "ID"; DropDownList3.DataTextField = "Name"; DropDownList3.DataBind(); con.Close();