Loads of ways: if you are in the page you can retrieve them via the Request.QueryString collection:
Passing variables between pages using QueryString[
^] shows examples.
If you just have the raw string and want to extract them, then either split the string on the ampersand:
string[] keyValuePairs = input.Split('&');
And then split each of those on the equals sign and compare the strings:
foreach (string kvp in keyValuePairs)
{
string[] kv = kvp.Split('=');
if (kv.Length == 2)
{
switch (kv[0].ToLower())
{
case "responsetext":
Console.WriteLine("Response: {0}", kv[1]);
break;
case "authcode":
Console.WriteLine("Auth : {0]", kv[1]);
break;
}
}
}
Or you could use a regex:
((?<Resp>(?<=responsetext=).*?)|(?<Auth>(?<=authcode=).*?))(&|$)