+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / change image path from live site to development

change image path from live site to development

3 posts, 0 answered
  1. Ajay
    Ajay avatar
    19 posts
    Registered:
    24 Aug 2012
    15 Jul 2013
    Link to this post
    hi ,

    tell me  i want to run  
    http://10.104.3.31:6070/probiotic-yogurt/
    and my life site url is like  www.mysite.us.com 

    my question is tell me  /greek_raspberry1.png
    have live path www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0

    on development http://10.104.3.31:6070/probiotic-yogurt/

    Please tell me how to change path of image from  
    www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0
    to 
     http://10.104.3.31:6070/images/product-hero/greek_raspberry1.png?sfvrsn=0 

    on development .




  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    15 Jul 2013 in reply to Ajay
    Link to this post
    Hi Ajay,

    If you get the images from the Sitefinity Libraries, you won't have to worry about this. Sitefinity will take care of the different environments.

    If you hard-coded the path in your code, you should change it manually when deploying your website.
    If you need the Images configured inside the HTML markup, I suggest using an <asp:Image /> control like this:
    <asp:Image runat="server" ImageUrl="~/Content/Images/image.jpg" />

    Kind regards,
    Daniel
  3. Ajay
    Ajay avatar
    19 posts
    Registered:
    24 Aug 2012
    15 Jul 2013 in reply to Daniel Plomp
    Link to this post
    THANK .

    question is Please tell me how to change path of image from  
    www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0
    to 
     http://10.104.3.31:6070/images/product-hero/greek_raspberry1.png?sfvrsn=0

    but sir my  question is i am running project on iis on  http://10.104.3.31:6070/ port

    but image is fetch with www.mysite.us.com but i want image include   http://10.104.3.31:6070/  

    1) my image path is not fixed. it with ~

    2)only path  www.mysite.us.com is diffrent but database is diffrent form  www.mysite.us.com

    please quick reply .
3 posts, 0 answered