We have a web site running on IIS7.5 using Asp.net web forms. All the website paths are in the format: "~/". Inside this website we have an application that loads inside an iFrame tag one page of the parent website. Obviously all the reference paths in the
iFrame content are referred (and point to) the application root and not at the website root. Is there a way to let point the iFrame content to the website root only changing the application or at least the website web.cofing, but not making mods on the website
code?
luca_gt
Member
10 Points
17 Posts
Path issue implementing an application inside an Asp.net Webforms Site
Feb 16, 2012 01:17 PM|LINK
We have a web site running on IIS7.5 using Asp.net web forms. All the website paths are in the format: "~/". Inside this website we have an application that loads inside an iFrame tag one page of the parent website. Obviously all the reference paths in the iFrame content are referred (and point to) the application root and not at the website root. Is there a way to let point the iFrame content to the website root only changing the application or at least the website web.cofing, but not making mods on the website code?
SonicMan
Participant
1472 Points
228 Posts
Re: Path issue implementing an application inside an Asp.net Webforms Site
Feb 20, 2012 06:57 AM|LINK
Hi
I think you can use "/" or Server.MapPath("~").
I'm not sure how to config the root in IIS.
And I found this two article for you:
http://technet.microsoft.com/en-us/library/cc754617(v=ws.10).aspx
http://www.west-wind.com/weblog/posts/2007/Jan/14/IIS-Root-Web-and-webconfig-Inheritance-grrrrrr
hope it helpful.
luca_gt
Member
10 Points
17 Posts
Re: Path issue implementing an application inside an Asp.net Webforms Site
Feb 20, 2012 07:50 AM|LINK
resolved, thanks.