/ Published in: VB.NET
Expand |
Embed | Plain Text
Public Function GetUrl() As String Dim strTemp As String = "" If (Request.ServerVariables("HTTPS") = "on") Then strTemp = "https://" Else strTemp = "http://" End If strTemp = (strTemp + Request.ServerVariables("SERVER_NAME")) If (Request.ServerVariables("SERVER_PORT") <> "80") Then strTemp = (strTemp + (":" + Request.ServerVariables("SERVER_PORT"))) End If strTemp = (strTemp + Request.ApplicationPath) Return strTemp End Function
You need to login to post a comment.
