if you are in class.asp, apparently, you could use
Request.QueryString("sid") and Request.QueryString("uid")
if you are talking about the string itself, you could use InStr to do the job, but here is a solution that uses regular expressions:
function GetValue(sQuery, sName)
dim re, matches
GetValue = ""
set re = new RegExp
re.IgnoreCase = true
re.Pattern= "(\?|&)" + sName + "=(\w+)(&|$)"
set matches = re.Execute(sQuery)
if matches.Count > 0 then
GetValue = matches(0).SubMatches(1)
end if
set re = nothing
end function
s = "http://www.xxxxxxx.com/class.asp?sid=007&uid=123"
s1 = GetValue(s,"sid")
s2 = GetValue(s,"uid")