how to set path to umageURL in serverside to radBinary?

2 posts, 0 answers
  1. Abhi Shinde
    Abhi Shinde avatar
    56 posts
    Member since:
    May 2010

    Posted 03 Aug 2011 Link to this post


    I am trying to bind image to radBinaryImage in serverside. but its not working.
    Please refer my code.

    string BefFileNAMe, AftFileName;
           if (e.Item.ItemType == RadListViewItemType.DataItem || e.Item.ItemType == RadListViewItemType.AlternatingItem)
               RadBinaryImage imgBeforePhoto = (RadBinaryImage)e.Item.FindControl("imgBeforePhoto");
               imgBeforePhoto.ImageUrl = Server.MapPath("~/Image/5SLanding/Before/") + beforePhoto.FileName;

    It is giving following error in Chrome debugger.
    Not allowed to load local resource: path/Image/5SLanding/Before/82before-5s.JPG
    I cheked the path. The path is correct.
    Please help me to solve this. 
  2. Andrew Galea
    Andrew Galea avatar
    22 posts
    Member since:
    Nov 2009

    Posted 22 Oct 2011 Link to this post

Back to Top