change image path from live site to development
hi ,
tell me i want to run
10.104.3.31:6070/.../
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 10.104.3.31:6070/.../
Please tell me how to change path of image from
www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0
to
10.104.3.31:6070/.../greek_raspberry1.png
on development .
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"
/>
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
10.104.3.31:6070/.../greek_raspberry1.png
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 .