This document provides an overview of e-commerce and ASP.NET. It defines e-commerce as buying and selling products or services over electronic systems like the internet. It describes different e-commerce models including business-to-business, business-to-consumer, and consumer-to-consumer. It then explains what ASP.NET is and how it can be used to build dynamic web pages and applications. It provides details on ASP.NET features, controls, events, and how to pass data between pages.
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.
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
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
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();
}
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.
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.
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
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();