M
Mark Sandfox
When i use Server.Transfer to transfer a URL (IWillBeHeard.com) to a
directory within the Home Website (Different URL) it still references links
and images to IWillBeHeard.com/images/graphic.jpg instead of
images/grapic.jpg. The code i am using to transfer is below. I must be
missing something. I have tried this with a SubWeb and a simply directory
and get the same results both ways. The ideal way is using SubWebs.
Thank you in advance for your help.
<Script Runat="server">
dim strToString, strLocalPath, strPathAndQuery as string
Sub page_load(Sender as Object, E as EventArgs)
strToString = request.URL.tostring
strLocalPath = request.URL.LocalPath
strPathAndQuery = request.URL.PathAndQuery
strToString = replace(strToString, strPathAndQuery, "")
strToString = replace(strToString, "http://www.", "")
strToString = replace(strToString, "http://", "")
Select Case strToString
Case "youthgroupservices.com"
Server.Transfer("Home.htm")
Case "iwillbeheard.com"
Server.Transfer("IWillBeHeard/Default.htm")
End Select
End Sub
</script>
directory within the Home Website (Different URL) it still references links
and images to IWillBeHeard.com/images/graphic.jpg instead of
images/grapic.jpg. The code i am using to transfer is below. I must be
missing something. I have tried this with a SubWeb and a simply directory
and get the same results both ways. The ideal way is using SubWebs.
Thank you in advance for your help.
<Script Runat="server">
dim strToString, strLocalPath, strPathAndQuery as string
Sub page_load(Sender as Object, E as EventArgs)
strToString = request.URL.tostring
strLocalPath = request.URL.LocalPath
strPathAndQuery = request.URL.PathAndQuery
strToString = replace(strToString, strPathAndQuery, "")
strToString = replace(strToString, "http://www.", "")
strToString = replace(strToString, "http://", "")
Select Case strToString
Case "youthgroupservices.com"
Server.Transfer("Home.htm")
Case "iwillbeheard.com"
Server.Transfer("IWillBeHeard/Default.htm")
End Select
End Sub
</script>