asp net hand code practice 1

Requirement

Program to load list of products from SQL-Server database

Implement

I. General

As you know, dynamic web is the web connect to database. Suppose we are building a website sale smartphone on internet. Information of smartphone was stored inside a table as records and your responsibility is show information of smartphone on web page with already css designed

II. Implement

1. Prepare for data

- Create database (any name)
- Create table to store information of smartphone including: id (primary key, auto increment), ten (name of smartphone), mota (describe for smartphone), idcty (id of company table, it use for filter data)

asp database

2. Create class to connect to database

asp class connect to database


4. Call class connect to database

asp call class

5. Video for more details


6. Results


Have fun, good luck.