How to make login form in Asp.Net(C#) using three layer.

First you create a project in the visual studio.
After that you add web form .
Click the project name and add web form.
Label and textbox drag and drop form the toolbox.
Now process start, how we add DAL , BLL, your web form is presentation layer.
DAL stand for data access layer.
BLL stand for business logic layer.
Add DAL


Add BLL

In data access layer!

In business logic layer!

In presentation layer!

Add second form you want to show,if user successfully login.

Summary

Open visual studio and create project. After that add web form for login form. Second web form when user successfully login & access form. In sql server create database and under database create table. Enter some data in the table. Finally make method in data access layer and business layer after that in presentation layer make condition, when user enter correct user name and password then they can access the next page. Other wise display message invalid user name or password!

Tools

Visual Studio
Sql Server


Comments