Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > BinaryImage > how to set path to umageURL in serverside to radBinary?

Not answered how to set path to umageURL in serverside to radBinary?

Feed from this thread
  • Abhi Shinde avatar

    Posted on Aug 3, 2011 (permalink)

    HI,

    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. 
    Thanks

    Reply

  • Andrew Galea avatar

    Posted on Oct 22, 2011 (permalink)

    *deleted*

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > BinaryImage > how to set path to umageURL in serverside to radBinary?