private void Page_Load(object sender, System.EventArgs e) { string strPID = "50004"; Product objProd; try { objPEE = new ProductEngineInstance("en-us", DateTime.Now); objCatalog = objPEE.Catalogs["Fnet-US"]; objProd = objCatalog.Products[strPID]; //Set the category code for Product Family control CategoryLocalized objCatLocalized = objProd.DefaultCategory.Localized; //Set grid headers LinkTitle = "Download"; dbAssets.Columns[0].HeaderText = "Title"; dbAssets.Columns[2].HeaderText = "DOWNLOAD OPTIONS"; //Assign datasource for the grid dbAssets.DataSource = getAssets(objProd); dbAssets.DataBind(); } catch (ProductEngineException ex) { if (ExceptionPolicy.HandleException(DanaherTM.Framework.ExceptionHandling.ExceptionInstance.FlukeNetworks.CommonControls, ex)) { throw; } } catch (NullReferenceException ex) { if (ExceptionPolicy.HandleException(DanaherTM.Framework.ExceptionHandling.ExceptionInstance.FlukeNetworks.CommonControls, ex)) { throw; } } catch (Exception ex) { if (ExceptionPolicy.HandleException(DanaherTM.Framework.ExceptionHandling.ExceptionInstance.FlukeNetworks.CommonControls, ex)) { throw; } } finally { objPEE.Dispose(); } }
public XmlHttpHandler() { fooPE = new ProductEngineInstance(strLocale, DateTime.Now); }