Dynamicweb 8 Documentation
Fill Method (Product)
Example 

DataReader.
Fills the properties from DataReader.
Syntax
'Declaration
 
Public Sub Fill( _ 
   ByVal dataReader As IDataReader _ 
) 
public void Fill( 
   IDataReader dataReader 
)

Parameters

dataReader
DataReader.
Example
class class MyPage : System.Web.UI.Page
{
   private Product product;
   public void FillProperties()
   {
       string SQL = "SELECT * FROM EcomProducts";
       IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb");

       if (objDataReader.Read())
       {
           product.Fill(objDataReader);
       }

       objDataReader.Close();
       objDataReader.Dispose();
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Product Class
Product Members

Send Feedback