locked
Image is not working on webservice RRS feed

  • Question

  • User-1047457604 posted

    After adding code to BLLSupplier to covert the image filename to full URL, 

    1) the first item on the supplier side, ( the image is not showing) but the rest of the rows are fine.

    2) Company could only view the first row image. the rest is not working.

    Below is my BLL code: 


    public DataSet GetWProduct()
    {
    String siteRootUrl;
    DalWProduct dataLayerWProduct;
    DataSet dataSetWProduct;
    DataTable dt;
    DataRow dr;
    siteRootUrl = "http://localhost:1422/SupplierBuyIt/SImages/";
    dataLayerWProduct = new DalWProduct();

    dataSetWProduct = dataLayerWProduct.GetAll();
    if (dataSetWProduct.Tables.Count != 0)
    {
    dt = dataSetWProduct.Tables[0];
    if (dt.Rows.Count != 0)
    {
    dr = dt.Rows[0];
    dr["Image"] = siteRootUrl + dr["Image"];
    }
    }
    return dataSetWProduct;

    }

    _________

    Thankyou

    Thursday, January 30, 2014 6:12 AM