October 23, 2009

Three Tier Architecture - Explained


October 15, 2009

Login in Asp.net using Three Tier Architecture

This article explains how to implement a login form using ASP.NET C# in a three-tier architecture.

In the previous article I have already explained how to create a new website in ASP.NET C#. You can check this Link.

Lets continue with the same example.

Basically 3-Tier architecture contains 3 layers
1.    Application Layer or Presentation Layer 
2.    Business Access Layer(BAL) or Business Logic Layer(BLL) 
3.    Data Access Layer(DAL)

October 9, 2009

Close Parent Form from Child Form

How to Close Parent Form from Child Form in Windows Forms

C#
private void btnOpenForm_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.FormClosed += new FormClosedEventHandler(frm2_FormClosed);
frm2.Show();
this.Hide();
}

private void frm2_FormClosed(object sender, FormClosedEventArgs e)
{
this.Close();
}

October 6, 2009

Creating a new Asp.Net Website

Your First Website

This article explains you the step by step procedure to how to get start to create a asp.net website in Visual Studio.


The Steps are :

1. File Menu -> New -> Web Site
 
The New Web Site dialog box will open

Select ASP.NET Empty Web Site

Give some name to the Website and Click on the OK Button.