For the ease of understanding, I have created BAL, DAL into the App_Code folder. pre 2) Can you post other similar article with Ajax? Because in practice we expect the delete to be performed with confirmation and also in details screen. Add new / Edit in 2 different tab panels - to have better usability. Regards, Sreedhar Thanks Vansree for your suggestions. Regarding pre class, I will let the webmaster know about it. As far as article on Ajax is concerned, I will try my best to post few articles on Ajax in coming days. Regards This is simpler example for 3-Tier Architecture.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.
Bonus : Now in edit mode we will set gridview dropdown list selected value as it displays before edit mode.NET Grid View j Query tips and tricks - Part 1 Grid View control is a successor to the ASP. The Grid View control enables you to connect to a datasource and display data is tabular format, however you have bunch of options to customize the look and feel. A datakey represents the primary key field or field of a record that can uniquely identify it in a data-bound control. Row Index represents the index of the particular row.There are also two events associated with this that you can use � Row Updating and Row Updated. in the absence of batch update, both of these events are raised for each and every row being updated.For example, if we are updating 100 rows, both of these rows are raised for 100 times.On page load will call this function, and now whenever the page gets load, function gv Bind() gets call and data gets display. Now we are at the main part of this article .i.e we are going to bind dropdown list in Gridview which we placed under edit template.Just look at HTML markup you will see `ddl_department` named drop-down list added.As you might have guessed this is not efficient while dealing with large number of rows.Fortunately Sql Data Adapter allows you to execute updates in batches. number of rows to be treated as a single batch via Update Batch Size property.Many a times in our applications we use primary keys to get control of the particular record in the gridview. For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.