By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,488 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

Application("AppPath") not working

P: n/a
I have the Sub in global.asa. It works on my server, but does not work when
I upload to the web server?

img src="<%= Application("AppPath")%>/images/btn_topslash2.gif"

Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)

If Application("AppPath") = Nothing Then

Dim sAbsUri As String = Request.Url.AbsoluteUri

Dim sRawUrl As String = Request.RawUrl

If Application("AppPath") = "/" Then

Application("AppPath") = Left(sAbsUri, Len(sAbsUri) - Len(sRawUrl))


Application("AppPath") = Left(sAbsUri, Len(sAbsUri) - Len(sRawUrl)) &

End If

End If

End Sub
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.