Home  About Us   Contact  Search   Tell A Friend   Resources  dotnetVideos Store Register  Login    
  August 21, 2008  
RedGateTwr0508
DeclarativeParameters    

Declarative Parameters:Step 1-Using Hard Coded Parameter Value

This step of the VIDEO TUTORIAL will introduce and demonstrate on how to set the parameter values of an ObjectDataSource control for data display when bound to various data web controls such as GridView, DetailsView and FormView controls. However, we will focus on setting a hard coded parameter value for an ObjectDataSource Control that will be bound by a DetailsView control. The parameter values can be supplied through various means such as other web controls, session variables or query strings etc., For detailed information and source code for this step, please refer to the original article.

 
  View Video...

Declarative Parameters: Step 2-Setting the Parameter Value to the Property Value of a Web Control

This step of the VIDEO TUTORIAL will focus on how to pass parameter values to the ObjectDataSource control by using other web controls such as TextBox control. This is achieved by adding a TextBox and GridView controls. The value that is entered in the TextBox control will be passed to the ObjectDataSource control that is bound by the GridView control for display of the data. For detailed information and source code for this step, please refer to the original article.

 
  View Video...

Declarative Parameters:Step 3-Showing All Suppliers by Default

This step of the VIDEO TUTORIAL will demonstrate on how to show all the suppliers by default at runtime on the web page DelcarativeParms.aspx. In order to accomplish this, a check has to be made for null value in the business logic layer method GetSuppliersByCountry(string country). If the country parameter is NULL that means, the user has entered no value and clicked on ‘Show Suppliers’ button on the web page at run time. This triggers the button’s click event and passes a NULL value as parameter to the GetSuppliersByCountry method of business logic layer. In this method, we have to verify this value, if it is NULL, we have to invoke GetSuppliers( ) method instead of GetSuppliersByCountry method which expects a string value (country) as a parameter. Therefore, we display all the suppliers by default by modifying the GetSuppliersByCountry method in the SuppliersBLL class file.For detailed information and source code for this step, please refer to the original article.

 
  View Video...

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