|
'=============================================================
'= This function adds an element to a URL =
'=============================================================
Function AddToQueryString(ByVal strURL, ByVal strKey, ByVal strValue) Dim strConChar Dim strTemp Dim intPos intPos = CInt(InStr(strURL, "?")) If intPos > 0 Then strConChar = "&" Else strConChar = "?" End If strTemp = strURL & strConChar & strKey & "=" & Server.URLEncode(strValue) AddToQueryString = strTemp End Function
|