Link to home
Start Free TrialLog in
Avatar of dkilby
dkilbyFlag for Canada

asked on

asp.net + iframe + dynamic url

i have a usercontrol that has an iFrame, it pulls another page into the iframe, the problem is if i use the user control in a page in a different folder obviously the path has changed.  how can i get the path no matter what page i use the user control

I tired using the ~ hoping it would go the the parent folder and work its way down, but that didn't work


<iframe id="ifrmComments" name="ifrmComments"  src="WebForms/ViewOrderLogs.aspx"
 scrolling="auto" width="100%" height="130"></iframe>


works fine if i use the user control as in the same folder.

Thanks
Avatar of sachiek
sachiek
Flag of Singapore image

"~" WILL TAKE TO ROOT

SO ACCORDINGLY YOU CAN TRY OUT.


SACHI
ASKER CERTIFIED SOLUTION
Avatar of ovalsquare
ovalsquare

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ovalsquare
ovalsquare

I explained why his ~ wasn't working, as well as some other options, answering his request so it would be nice to get the points ;-)

Ted