0% found this document useful (0 votes)
12 views

lab - 6

Uploaded by

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

lab - 6

Uploaded by

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

Lab Report: Adding Homepage to Online Food Ordering Project

Objective

The objective of this lab session was to implement a homepage in the online food ordering
system project. The homepage serves as the central interface for users, providing them with
options to navigate the system, view menus, and place orders.

Tools and Technologies Used

● Programming Language: C#
● Development Environment: Visual Studio
● Database: MS SQL Server
● Framework: .NET Framework

Steps to Add the Homepage

1. Create the Homepage Form

1. Add a New Form:


○ Open the project in Visual Studio.
○ Right-click on the project in Solution Explorer and select Add > Windows
Form.
○ Name the form HomePage.
2. Design the Form:
○ Add necessary UI components to the form, such as buttons for navigation (e.g.,
View Menu, Place Order, Profile).
○ Add labels, images, or other elements to enhance the visual appeal of the
homepage.

2. Modify the Login Form to Redirect to Homepage

1. Open the Login Form (Form1):


○ Navigate to the login form in the project.
2. Update Login Logic:
○ Verify user credentials against the database.
○ On successful login, open the homepage.

Challenges Faced

1. UI Alignment: Ensuring all UI elements were aligned and visually appealing.


2. Database Connection: Configuring the connection string to work seamlessly with the
database.
3. Redirection Logic: Handling form redirection and ensuring all forms close properly to
prevent memory leaks.

Results

The homepage was successfully added to the online food ordering system. Users can now
navigate through the application from the homepage after logging in. All navigation paths and
database interactions were tested and function as expected.

Future Improvements

1. Add dynamic content to the homepage, such as featured dishes or user-specific


recommendations.
2. Enhance the visual design of the homepage using custom themes or animations.
3. Implement user-specific sessions for a more personalized experience.

Conclusion

This lab session successfully integrated a homepage into the online food ordering system,
improving the application's usability and user experience. The implementation provides a solid
foundation for further enhancements.

You might also like