900 likes | 2.83k Views
Web application project. Advertising board web site. Created by : Alon Nagar Supervisor:Victor Kulikov. The Task. Create an advertising board web site website having the following features:. Managing users accounts . Managing ads.
E N D
Web application project Advertising board web site Created by : Alon Nagar Supervisor:Victor Kulikov
The Task Create an advertising board web site website having the following features: • Managing users accounts . • Managing ads. • Classification of the ads by: category, sub category & region. • Basic maintenance operation.
Main goals • Get familiar with Microsoft tools: Asp.net, Sql server, c#. • Learn how to create a structured web site. • Acquire software design abilities. (hierarchical design, working with design patterns etc.) • Designing and working with a database.
Why layer design? • Reuse of layers • Dependencies are kept local • Exchangeabilities : • Replacement of old implementation easily
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…
The Database • Main responsibilities: • store large amount of data. • retrieve the data efficiently. • enforcing data consistency rules on the data. • Implemented using SQL server. • Implementation using: • key constraint • primary / foreign key. • Views • Stored procedures
DAL-Data Access Layer A Data Access Logic Component provides methods to perform the following tasks upon a database, on behalf of the caller: 1. Create records in the database 2. 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 Implementation: • Singleton • Datasets • Direct access (sqlCommand, dataReader)
BLL- Business Logic Layer While the DAL cleanly separates the data access details from the presentation layer, it does not enforce any business rules that may apply • serves as an intermediary for data exchange between the presentation layer and the DAL • Enforce 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. • Implementation: • Object oriented • -Structural and modular code.
Presentation layer Responsibilities: • 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
Presentation layer • Implementation using: • Master page • CSS • Web user controls • Various asp.net controls: • -Validation controls • -Gridviews • -Button • -Datasource etc… • HTML
Presentation layer Home page Search results Login Subscribe Create ad administrator My ads Update user Update ad 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.