L
loga123
Hi All,
I have 2 web applications running on the same IIS server with
different roots.
Suppose, application A can be run using --> http://localhost/A
application B can be run using --> http://localhost/B
I have a file test.asp whose path is http://localhost/A/subfolderA/Test.asp
I woild like to access test.asp in one of my TestB.vb pages in the
application B.
I tried using
Dim strURL as string = page.resolveURL("~/subfolderA/Test.asp)
I get error "page can not be found".
I understand that when I use "~" in resolveURL it goes to the CURRENT
application root which is "http://localhost/B" and then trying to
resolving it as http://localhost/B/SubfolderA/Test.asp. As there is
no such page exists, it gives me the error.
How do I get the root of application A in my application B? I would
like to get it dynamically using code.
Any help is greatly appreciated. Thanks
I have 2 web applications running on the same IIS server with
different roots.
Suppose, application A can be run using --> http://localhost/A
application B can be run using --> http://localhost/B
I have a file test.asp whose path is http://localhost/A/subfolderA/Test.asp
I woild like to access test.asp in one of my TestB.vb pages in the
application B.
I tried using
Dim strURL as string = page.resolveURL("~/subfolderA/Test.asp)
I get error "page can not be found".
I understand that when I use "~" in resolveURL it goes to the CURRENT
application root which is "http://localhost/B" and then trying to
resolving it as http://localhost/B/SubfolderA/Test.asp. As there is
no such page exists, it gives me the error.
How do I get the root of application A in my application B? I would
like to get it dynamically using code.
Any help is greatly appreciated. Thanks