J
John Kotuby
Hi all,
I have a situation where a Web Server at an install site does not currently
have a publically registered Domain Name associated with the site. This
requires that the a user access the site from a remote (outside the LAN)
browser using the IP address, as in http://192.35.78.234 .
Currently in my code I use the following syntax to obtain the Root Web path
which I then append as a prefix to Images and Links in external documents
(Excel files) so the recipient of an HTML Email or one of the spreadsheets
can both resolve the images or click on a spreadsheet link to view a page on
the site.
Dim strRootWeb As String = Me.Request.Headers.Item("Host").ToString
strRootWeb = "http://" + strRootWeb
Session.Add("RootWeb", strRootWeb)
Then for a working link in an external document I will do something like:
Public strRootWeb = Session("RootWeb")
strRootWeb & "/Common/PageView.aspx
But this does not work if the name of the Web Server is not publically
registered with DNS servers.
Thanks for any help on resolving the IP address of a Web Server root.
I have a situation where a Web Server at an install site does not currently
have a publically registered Domain Name associated with the site. This
requires that the a user access the site from a remote (outside the LAN)
browser using the IP address, as in http://192.35.78.234 .
Currently in my code I use the following syntax to obtain the Root Web path
which I then append as a prefix to Images and Links in external documents
(Excel files) so the recipient of an HTML Email or one of the spreadsheets
can both resolve the images or click on a spreadsheet link to view a page on
the site.
Dim strRootWeb As String = Me.Request.Headers.Item("Host").ToString
strRootWeb = "http://" + strRootWeb
Session.Add("RootWeb", strRootWeb)
Then for a working link in an external document I will do something like:
Public strRootWeb = Session("RootWeb")
strRootWeb & "/Common/PageView.aspx
But this does not work if the name of the Web Server is not publically
registered with DNS servers.
Thanks for any help on resolving the IP address of a Web Server root.