Hi,
Here is an example reads the values in the form collection.
1 int loop1;
2 NameValueCollection coll;
3
4 //Load Form variables into NameValueCollection variable.
5 coll=Request.Form;
6 // Get names of all forms into a string array.
7 String[] arr1 = coll.AllKeys;
8 for (loop1 = 0; loop1 < arr1.Length; loop1++)
9 {
10 Response.Write("Form: " + arr1[loop1] + "<br>");
11 }
Zhao Ji Ma
Sincerely,
Microsoft Online Community Support
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”