Web application project Advertising board web site Created by : Alon Nagar Supervisor:Victor...

17
Web application project Advertising board web site Created by : Alon Nagar Supervisor:Victor Kulikov

Transcript of Web application project Advertising board web site Created by : Alon Nagar Supervisor:Victor...

Web application project

Advertising board web site

Created by : Alon NagarSupervisor:Victor Kulikov

The Task

Create an advertising board web site website having the following features:

1. Managing users accounts .

2. Managing ads.

3. Classification of the ads by: category, sub category & region.

4. Basic maintenance operation.

Main goals

1. Get familiar with Microsoft tools: Asp.net, Sql server, c#.2. Learn how to create a structured web site.3. Acquire software design abilities. (hierarchical design, working

with design patterns etc.)4. Designing and working with a database.

Web-site layered structure

Reuse of layers Dependencies are kept local Exchangeabilities :

– Replacement of old implementation easily

Why layer design?

Layers: Liabilities

Lower efficiency Unnecessary work: functions of a layer

called many times for one service Difficulty of establishing correct granularity of

layers: To few layer -> less benefits, to much layer -> complexity and overhead…

Implementation using:

• key constraint•primary / foreign key.•Views•Stored procedures

The Database

Main responsibilities:• store large amount of data.• retrieve the data efficiently. •enforcing data consistency rules on the data.

Implemented using SQL server.

Database structure

addsadd_keyp

add_usrp

add_categoryp

add_publish_date

add_exp_date

add_detailes

add_regionp

add_pic1

add_pic2

status

categoriescat_keyp

cat_name

cat_sub_cat

dealdeal_keyp

deal_length

deal_price

mbalancembalance_keyp

mbalance_personK

mbalance_purchase_date

mbalance_payment

personperson_keyp

person_ID

person_name

person_tel

person_mail

regionregion_keyp

region_name

rolerole

usrusr_keyp

usr_personp

usr_status

usr_credit_card_num

usr_role

usr_name

usr_password

usr_last_visit

usr_subscription_date

DAL-Data Access Layer

1 .Create records in the database2. Read records in the database, and return business entity data to the caller

3.Update records in the database, by using revised business entity data supplied by the caller

4 .Delete records in the database

A Data Access Logic Component provides methods to perform the following tasks upon a database, on behalf of the caller:

Implementation:

•Singleton•Datasets •Direct access (sqlCommand, dataReader)

DAL-Data Access Layer

BLL- Business Logic Layer

serves as an intermediary for data exchange between the presentation layer and the DALEnforce business rules on the data:

-Expired ads-Validation checking (credit card, ID). etc.

Prepare the data for storage\removal in\from database:-Encryption (if necessary)- Delete ads etc.

While the DAL cleanly separates the data access details from the presentation layer, it does not enforce any business rules that may apply

Implementation:•Object oriented

-Structural and modular code.

BLL- Business Logic Layer

Presentation layer

•Acquiring data from the user •Rendering data to the user •Validation, input masking, and using appropriate controls for data input •Managing visual layouts, styles, and the general appearance and navigation of the application •Formatting data and displaying it in useful visual styles •Browsing, searching, and organizing displayed data

Responsibilities:

Implementation using:

•Master page•CSS•Web user controls•Various asp.net controls:

-Validation controls -Gridviews-Button-Datasource etc…

•HTML

Presentation layer

Presentation layerHome page

Search results

My ads

Subscribe

Create ad

Update ad

administrator

Login

Update user

Messages-Errors

Bibliography

•Asp.net website-videos-tutorials

•w3school website•MSDN web site•Wiley, Professional ASP.Net 2.0 (2006) -electronic version•Sams ASP.NET 3.5 Unleashed-Jan 2008- Ebook.•The Oracle – Google:

-Forums-web sites

Remarks…Special difficulties:

•Presentation layer -75% of the time.-graphics-positioning-data validation

•Huge amount of knowledge.•Mastering many different tools:

-asp.net-html-sql server-c#-css-visual studio

•Working alone…

Special thanks to software laboratory team and especially to Victor who was always there for me.

Helping, advising, supporting – and not less important always with a glowing smile on his

face.