Dynamicweb 8 Documentation
Fill Method (Price)
Example 

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

Parameters

DataReader
The DataReader with data of properties.
Example
class MyPage : System.Web.UI.Page
{
    private Dynamicweb.eCommerce.Prices.Price GetPrice(string priceID)
    {
        Dynamicweb.eCommerce.Prices.Price price = null;
        string SQL = "SELECT * FROM EcomPrices WHERE PriceID = '" + priceID + "'";
        IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb");

        if (objDataReader.Read())
        {
            price = new Dynamicweb.eCommerce.Prices.Price();
            price.Fill(objDataReader);
        }
        objDataReader.Close();
        objDataReader.Dispose();

        return price;
    }
}
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

Price Class
Price Members

Send Feedback