Dynamicweb 8 Documentation
Save Method (OrderField)
Example 

DB field name is OrderFieldID.
Saves the properties into DB.
Syntax
'Declaration
 
Public Sub Save( _ 
   ByVal fieldIdStr As String _ 
) 
public void Save( 
   string fieldIdStr 
)

Parameters

fieldIdStr
DB field name is OrderFieldID.
Example
class OrderField_EditPage : System.Web.UI.Page
{
 
   private void SaveOrderField( OrderField orderField )
   {
       orderField.Name = NameStr.Text;
       orderField.TemplateName = TemplateNameStr.Text;
       if (orderFieldId == "")
       {
           orderField.SystemName = SystemNameStr.Text;
       	   orderField.TypeID = Base.ChkNumber(TypeStr.SelectedValue);
       	   orderField.TypeName = TypeStr.Items(TypeStr.SelectedIndex).Text;
       }
       orderField.Locked = Locked.Checked;

       bool addField = true;
       if (ValidNames(orderField.SystemName))
       {
       	   UpdateOrderTable();

       	   if (addField || orderFieldId != "")
       	       orderField.Save(orderFieldId);

       	   Dynamicweb.eCommerce.Common.Application.KillOrderFields();
       }
   }
}
class MyPage : System.Web.UI.Page
{
   private void DoSave(string fieldIdStr)
   {
       OrderField orderField = default(OrderField);
       orderField = new OrderField();

       orderField.SystemName = Base.ChkString(Request.QueryString["SystemName"]);
       orderField.TypeID = Base.ChkInteger(Request.QueryString["TypeID"]);
       orderField.TypeName = Base.ChkString(Request.QueryString["TypeName"]);
       orderField.Save(fieldIdStr);
   }
}
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