Example #1
0
    private void Galery_Zoom(int Product_ID)
    {
        DataTable dt = db.QP("exec Product_Details @P0", Product_ID).Tables[0];

        if (dt.Rows.Count > 0)
        {
            productZoom.Src = (string)dt.Rows[0]["İmage"].ToString().Replace("~/", "");                                  //Ana Slide 512px
            productZoom.Alt = (string)dt.Rows[0]["Title"];
            productZoom.Attributes.Add("data-zoom-image", (string)dt.Rows[0]["İmageZoom"].ToString().Replace("~/", "")); // Zoom İmage 1024

            DataProduct.DataSource = dt;
            DataProduct.DataBind();
        }
    }
Example #2
0
    public void BindDummyItem()
    {
        DataTable dtGetData = new DataTable();

        dtGetData.Columns.Add("Title");
        //  dtGetData.Columns.Add("Description");
        dtGetData.Columns.Add("Product_ID");
        dtGetData.Columns.Add("İmage");
        dtGetData.Columns.Add("İmageSmall");
        dtGetData.Columns.Add("İmageZoom");
        dtGetData.Rows.Add();

        DataProduct.DataSource = dtGetData;
        DataProduct.DataBind();
    }
Example #3
0
 public void BindDummyItem(string Product_ID, string Variant)
 {
     DataProduct.DataSource = GetingDatas(Product_ID, Variant);
     DataProduct.DataBind();
 }