Regarding page image paths using master page

If the Masterp page and the child aspx page are in different folders when the aspx page is served, then do the image paths refer to the location of the child page or master page?

0


source to share


1 answer


Page for children.



Consider using "~ /" in your path that points to the root of the application, this way you can set your images on the main page to something like "~ / images / image_name.png" without worrying about where the child pages are persist.

+4


source







All Articles