Home  About Us   Contact  Search   Tell A Friend   Resources  dotnetVideos Store Register  Login  
  October 6, 2008  
apress
AddingClientSideConfDeleting    

Adding Client-Side Confirmation When Deleting:Step 1-Creating a FormView That Supports Deletion

This step of the VIDEO TUTORIAL will demonstrate on how to alert an end user during the Delete process. In the previous tutorials where we have demonstrated data modification interfaces, especially, the delete interface with data web controls such as GridView, DetailsView or FormView, we have not alerted the end user seeking their confirmation, when they tried to delete a particular record. In this step as well as other two steps of this video tutorial, a demonstration is made by adding client-side confirmation when deleting in a FormView control on ConfirmationonDelete.aspx web page of EditInsertDelete folder of Data Tutorial project. In this step a FormView control is configured to display a sub set of product information using GetProducts() method of ProductsBLL business object using an ObjectDataSource control. The FormView is also configured to display paging and also includes a Delete button in its ItemTemplate declarative markup. For detailed information and source code for this step, please refer to the original article.

  View Video...

Adding Client-Side Confirmation When Deleting: Step 2-Calling the confirm(string) Function from the Delete Buttons Client-Side onclick Event

This step of the VIDEO TUTORIAL (included in Step 1) will focus on how to add a generic message alerting an end user clicks on the Delete button on the FormView display at run time on the ConfirmationonDelete.aspx web page. This is implemented in design mode by assigning the OnclientClick property of the delete link button in the ItemTemplate mark up of in the declarative syntax of the ConfirmationonDelete.aspx page. For detailed information and source code for this step, please refer to the original article.

  View Video...

Adding Client-Side Confirmation When Deleting: Step 3-Configuring the OnClientClick Property for the Delete Button in a CommandField

This step of the VIDEO TUTORIAL (included in Step 1) will conclude in demonstrating on how to implement client-side confirmation for a delete command butting a GridView control. In order to demonstrate this, a GridView Control is added to the web page and is configured to use the same ObjectDataSource control to display the same subset of product information from the underlying database table similar to the FormView control in the previous step. The GridView control is configured to display a Delete command button using its smart tag control. The OnClientClick property is added to the Delete command button by writing custom code in the GridView’s RowDataBound event handler. For detailed information and source code for this step, please refer to the original article.

  View Video...

telerik_wpf6
  Copyright 2008 by dotnetvideos.net   Terms Of Use | Privacy Statement