I think you want just Request.QueryString("CallFrom")...
But if you wanted the entire collection for some other reason, the
entire string is a NameValueCollection object, and you can loop through
it like you would a HashTable and get values based on keys.
Something like this (C#):
System.Collections.Specialized.NameValueCollection objQS = new
System.Collections.Specialized.NameValueCollection ();
objQS = Request.QueryString;
for (int ctr = 0; ctr < objQS.Count; ctr++)
{
Response.Write("key: " + objQS.GetKey(ctr).ToString() + "<br>");
Response.Write("value: " + objQS.Get(ctr).ToString() + "<br><br>");
}
Hope that helps.
Rob R. Ainscough wrote:
How can I extract the path argument info in ASP.NET (using VB.NET)?
Examples
my Main.aspx form is linked using "Main.aspx?CallFrom=MyApp"
I want to be able to extract the name/value pair "CallFrom=MyApp" from
within my Main.aspx?
Is this possible?
Thanks, Rob.