You must Sign In to post a response.
  • Category: ASP.NET

    How to Access Images Sub Domain to Main Domain

    I have a Create a Application Which have i am Store a Images in Sub Domain and I can Access this images in main Domain .
    how can i Access this image?
  • #725360

    for example your sub domain folder is "sub" then you can assign image to the image control as like below

    <img src="~/sub/image1.jpg" Id="t1" alt="Image"/>

    Your Hard work never fails

  • #725436
    You would to use this HTML code snippet for Access Images Sub Domain to Main Domain if the subdomain were just a sub-directory

    <img src='../../images/imgname.jpg' />

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.