You may also please send me some useful link, if possible.

I'm use to binding the gridview to the sqldatasource, but want to learn more on the way you created this page. But Sheo Narayan, as in this example you are creating DAL and BAL inside App_Code, I need an architecture wherein the DAL and BAL should be outside App_Code folder.

Because I am trying to implement this but not getting it.

Then I have instantiated Person BAL3 and calling Insert method of it (p BAL.

Is Valid method just to check if correct data has been entered.

In this article I am going to show how to design a web application based on 3-tier architecture. Code for Business Access Layer using System; using System. By using 3-Tier architecture in your project you can achive 1.

Download source code for 3-Tier Architecture in ASP. Seperation - the functionality is seperated from the data access and presentation so that it is more maintainable 2.

Now we have to write our Presentation Layer that will use our Business Access Layer methods.

Html Controls; /// Till now we haev our Business Access Layer and Database Access Layer ready.

(In my case I have a 3-Tier folder inside App_Code folder, you can directly add inside App_Code or you can create a separate project for DAL and add reference of this project into your BAL.) and copy-paste folowing code (Your can overwrite your default written code for the class file by pasting this code). Tab Container (Container to hold GV, Add, Edit) First Tab Panel ... Now think the Scenario when the number of fields are too much.

Here, I have assumed that you will create the respective stored procedure yourself into the database or you may download attachment from using System; using System. In this case definitely the passing number of variable will not be good idea.

NET with C# 3-Tier architecture generally contains UI or Presentation Layer, Business Access Layer (BAL) or Business Logic Layer and Data Access Layer (DAL). Independence - layers are established so that if one is modified (to some extent) it will not affect other layers. Reusability - As the layers are seperated, it can exist as a module that can be reused by other application by referencing it.