Dynamicweb 8 Documentation
Save Method (Fee)
Example 

The fee ID.
Saves fee. If the fee with specified ID exists, it will be overwriten
Syntax
'Declaration
 
Public Sub Save( _ 
   ByVal feeID As String _ 
) 
public void Save( 
   string feeID 
)

Parameters

feeID
The fee ID.
Example
private void SaveDefaultFeeData()
{
     Fee feeSet = new Fee();

     String reqLineID = Request("DFEE_LineID");
     String reqFeeID = Base.ChkString(Request("DFEE_ID"));
     String reqFeeType = Base.ChkString(Request("DFEE_Type"));
     String reqFeeValue = Base.ChkString(Request("DFEE_Value"));

     feeSet.ID = reqFeeID;
     feeSet.Method = "PAY";
     feeSet.MethodID = Base.ChkString(payId);
     feeSet.Type = CType(reqFeeType, Integer);
     feeSet.ValueAmount = Base.DoubleFromString(reqFeeValue);
     feeSet.Weight = -1;
     feeSet.Volume = -1;

     feeSet.Save(reqFeeID);
 }
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

Fee Class
Fee Members

Send Feedback