Dynamicweb 8 Documentation
Fill Method (OrderField)
Example 

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

Parameters

DataReader
The DataReader.
Example
class MyPage : System.Web.UI.Page
{
   private OrderField GetOrderField(string fieldIdStr)
   {
       OrderField field = default(OrderField);
       field = new OrderField();

       string SQL = "SELECT * FROM EcomOrderField WHERE OrderFieldID = '" + Base.ChkString(fieldIdStr) + "' ";
       IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb");

       if (objDataReader.Read())
       {
           field.Fill(objDataReader);
       }
       objDataReader.Close();
       objDataReader.Dispose();

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

OrderField Class
OrderField Members

Send Feedback