Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
201 views11 pages

E Commerce

Uploaded by

skon831
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
201 views11 pages

E Commerce

Uploaded by

skon831
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Name: Phorn Sopheak

ID: 60379
Major: Information Technology
Year4 semester 1

Lesson summary
1 What is e-commerce?
E-commerce (electronic commerce) is the activity of electronically buying or selling
products on online services or over the Internet. E-commerce draws on technologies such as
mobile commerce, electronic funds transfer, supply chain management, Internet marketing,
online transaction processing, electronic data interchange (EDI), inventory management
systems, and automated data collection systems. E-commerce is the largest sector of the
electronics industry and is in turn driven by the technological advances of the semiconductor
industry. These e-commerce transactions typically fall within four types: business-to-business
(B2B), business-to-consumer (B2C), consumer-to-consumer or consumer-to-business.
2 SP.NET websites and web pages
• ASP.NET web pages are simple text files, meaning that you can create them using any text
editor (such as Microsoft Notepad), but if you’ve created websites before, you know that using
a tool such as Microsoft Expression
• Web or Adobe Dreamweaver makes the development process much easier than using a
generic text editor such as Notepad. This is the case for ASP.NET, as well.
• Before we create our first ASP.NET website, we need to install the .NET Framework, Visual
Web Developer, and SQL Server.
• The .NET Framework is a rich platform for creating Windows based applications and is the
underlying technology used to create ASP.NET websites.

3 Dynamic Website with ASP.NET

4 Set up Visual Studio

5 What is e-commerce User Interface (UI)?


Definition: A user interface, commonly referred to as a “UI,” is the user-facing design of a
webpage or application. User-friendly UI is important for ecommerce merchants to provide
intuitive navigation — and a pleasant shopping experience — for customers. A website that
allows people to buy and sell physical goods, services, and digital products over the internet
rather than at a brick-and-mortar location. Through an e-commerce website, a business can
process orders, accept payments, manage shipping and logistics, and provide customer
service.

6 HTTP GET vs POST Method in ASP.NET Core Web API


In ASP.NET Core Web API, HTTP GET and POST methods are two fundamental ways to
send requests to a server. Each method serves different purposes and is chosen based on the
requirements of the API and the nature of the data being handled.
HTTP GET Method
• Purpose: GET requests are used primarily to retrieve data from a server. They should only
retrieve data and have no other effect, such as fetching user information or retrieving a list of
items.
• Data Transmission: Parameters are appended to the URL and sent in the query string. This
makes the requested data visible in the URL, which is suitable for non-sensitive information.
• Idempotency: It is idempotent, meaning multiple identical GET requests should have the
same effect as a single request and should not change the state of the server.
• Cacheable: GET responses can be cached by the browser or web servers to improve
performance on subsequent requests.
• Security: It is not suitable for sensitive data transmission as data is exposed in the URL. •
Limitations: There is a limit on the length of the URL, which can restrict the amount of data
that can be sent in a GET request. This limit varies by browser and server. • Use Cases: It’s
used for retrieving data, such as fetching a specific item or a list of items. Examples include
searching, filtering, and navigating to a specific page. • The [HttpGet] attribute is used to
define a method that responds to an HTTP GET request.
Choosing Between GET and POST
• Use GET when you’re requesting data from a server without causing any side effects (e.g.,
searching, retrieving).
• Use POST when you’re sending data to the server to create or update resources or when the
amount of data exceeds what can be sent in a query string. In the next article, I will discuss
How to Implement the HTTP PUT Method in ASP.NET Core Web API Application with
Examples. In this article, I explain How to Implement the HTTP POST Method in ASP.NET Core
Web API with Examples. I hope you enjoy this article, “How to Implement HTTP POST Method
in ASP.NET Core Web API and Its Best Practices.”
POST Method in ASP.NET Core
The Form collection retrieves the values of form elements posted to the HTTP request
body, with a form using the POST method. When you use parameters with Request Form, the
Web server parses the HTTP request body and returns the specified data. If your application
requires unparsed data from the form, you can access it by calling Request Form without any
parameters.
POST Method in ASP.NET Core
We can see how the view is completely independent from the controller, or how the
information is retrieved - which is the whole idea behind MVC. The view only knows about the
model, and how to display the model - nothing else.

Done and Demo

7 ASP.NET - Database Connection with SQL Server


1. Connection – To work with the data in a database, the first obvious step is the connection.
The connection to a database normally consists of the below-mentioned parameters.
1.1. Database name or Data Source – The first important parameter is the database
name to which the connection needs to be established. Each connection can only work with
one database at a time.
1.2. Credentials – The next important aspect is the username and password which needs
to be used to establish a connection to the database. It ensures that the username and
password have the necessary privileges to connect to the database.
1.3. Optional parameters – For each database type, you can specify optional parameters
to provide more information on how .NET should handle the connection to the database. For
example, one can specify a parameter for how long the connection should stay active. If no
operation is performed for a specific period of time, then the parameter would determine if
the connection has to be closed.
2. Selecting data from the database – Once the connection has been established, the next
important aspect is to fetch the data from the database. ASP.NET can execute ‘SQL’select
command against the database. The ‘SQL’statement can be used to fetch data from a specific
table in the database.
3. Inserting data into the database – ASP.NET can also be used to insert records into the
database. Values can be specified in ASP.NET for each row that needs to be inserted into the
database.
4. Updating data into the database – ASP.NET can also be used to update existing records into
the database. New values can be specified in ASP.NET for each row that needs to be updated
into the database.
5. Deleting data from a database – ASP.NET can also be used to delete records into the
database. Select commands to specify which rows need to be deleted can be specified in
ASP.NET. Ok, now that we have seen the theory of each operation, let’s jump into the further
sections to look at how we can perform database operations in ASP.NET.
8 ASP.NET - SQL Statement
A database is a structured collection of data that is stored in a computer system. They
are used to store and retrieve the data efficiently. Databases can be created using different
query languages, and SQL is one such language. To work with a database in SQL, we need to
first select the database we want to work with. After selecting the database, we can perform
various operations on it such as creating tables, inserting data, updating data, and deleting
data.
The SQL Statement
The SQL statement is used to select the data from a list of databases available in the
system. Once a database is selected, we can perform various operations on it such as selecting
data, creating tables, inserting data, updating data, and deleting data.
1.The SQL SELECT Statemen The SQL SELECT Statement is used to fetch the data from a
database table which returns this data in the form of a table. These tables are called result-
sets.
The SQL CREATE TABLE Statement SQL provides the CREATE TABLE statement to create
a new table in a given database. An SQL query to create a table must define the structure of a
table. The structure consists of the name of a table and names of columns in the table with
each column's data type. Note that each table must be uniquely named in a database

9 E-Commerce Business Model


You might be wondering what the ecommerce business models are. E-Commerce business models and concepts
are businesses' strategies to sell products online. There are several ways startups operate to sell their goods and
services, and it's important to adopt a model that best promotes your business. Here are six different ecommerce
business models and strategies suitable for getting your online selling started:

• Business-to-Business (B2B)

• Business-to-Consumer (B2C)

• Consumer-to-Consumer (C2C)

• Business-to-Administration (B2A)

• Consumer-to-Business (C2B)

• Consumer-to-Administration (C2A)
The is Database Booking Resort Project

You might also like