Used breakpoints and checked, its showing the same existing values which is there before editing. aspx code protected void Page_Load(object sender, Event Args e) public static User Principal Get User Principal(String user Name) protected void Get Year() protected void Get Month() public void Grd Get Comments() protected void Btn Save_Click(object sender, Event Args e) protected void gv Data_Row Editing(object sender, Grid View Edit Event Args e) protected void gv Data_Row Canceling Edit(object sender, Grid View Cancel Edit Event Args e) protected void gv Data_Row Updating(object sender, Grid View Update Event Args e) public int Updategv Data(In Log DTO b) ALTER PROCEDURE [dbo].[Updategv Data] @Logd In Username nvarchar(50) , @Comments nvarchar(50), @Btn ID int AS Update dbo. Please go through the code and help me sort out this problem.The Grid View control is the successor to the Data Grid and extends it in a number of ways.With this Grid View control, you could display an entire collection of data, easily add sorting and paging, and perform inline editing.open visual studio – In above screen we can see, there are five column in User Mst Table in sql.The first column is ID which is identification of user, so it must be unique.Presentation Layer (UI) Presentation layer cotains pages like or windows form where data is presented to the user or input is taken from the user. Hope this article helped you understanding 3-Tier architecture and desiging it. Updated on July 01 2008: Source Code attached Full Name: Sheo Narayan Member Level: Honorary Platinum Member Status: Administrator Member Since: 7/8/2008 PMCountry: India Regards, Sheo Narayan MVP, Author, Writer, Mentor & architecting applications since year 2001.
In real scenario, you should create separate projects for BAL, DAL (as Class Library) and UI (as Web project) and reference your BAL into UI. I wonder if you can come up with the same but using Ajax Tabs. Like having add button in Grid View will switch you to Tab Panel (Add new) and then perform the add ... But would like to see if you can come up with Tabs and your example above. I have one question about passing the data between layers.
When I Filter the data using dropdown selected Index Changed event the gridview shall load data based on what is searched.
I need to do the updating operation on what row is clicked.
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.
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.