Dynamicweb.eCommerce.Products Namespace > Product Class : Fill Method |
'Declaration
Public Sub Fill( _ ByVal dataReader As IDataReader _ )
public void Fill( IDataReader dataReader )
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(); } }
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