UI: Login Page public partial class login : System.Web.UI.Page { businessLogic obj = new businessLogic(); protected void button_Click(object sender, EventArgs e) { obj.Username = username.Text; obj.Password = password.Text; obj.loginbll(); Response.Redirect("HOme.aspx"); } } BLL: using databaselogic; public class businessLogic { public businessLogic () { databaselogic obj_Bl = new databaselogic(); } public string _username, _password; public string Username { get { return _username; } set { _username = value; } } public string Password { get { return _password; } set { _password = value; } } public void loginbll() { obj_Bl.login(Username,Password); } DAL: namespace databaselogic { public class databaselogic { public databaselogic() { } public void login(string username, string password) { //code related to Queries goes on here } } }
ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting. ASP.NET supports three different development models: Web Pages, MVC (Model View Controller), and Web Forms.
Thursday, May 17, 2012
3 Tier Login Example
Subscribe to:
Post Comments (Atom)
Using Authorization with Swagger in ASP.NET Core
Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models { ...
-
Output: using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using S...
-
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D...
-
<?xml version="1.0" encoding="utf-8"?> <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting...
No comments:
Post a Comment