Dynamicweb 8 Documentation
Save Method (Price)
Example 

DB field name is PriceID.
DB field name is PriceProductID.
DB field name is PriceCurrency.
Saves the properties into DB.
Syntax
'Declaration
 
Public Sub Save( _ 
   ByVal IDStr As String, _ 
   ByVal prodID As String, _ 
   ByVal currCode As String _ 
) 
public void Save( 
   string IDStr,
   string prodID,
   string currCode 
)

Parameters

IDStr
DB field name is PriceID.
prodID
DB field name is PriceProductID.
currCode
DB field name is PriceCurrency.
Example
class MyPage : System.Web.UI.Page
{
   private Price price;
   
   private void Page_Load(System.Object sender, System.EventArgs e)
   {
       price = (Price)Session["Ecom.Backend.Price"];
   }
 
   public Price DoSave()
   {
       Price p = new Price();
       p = price.Clone();
       p.Save(p.ID, p.ProductID, "");
       return p;
   }
}
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