Inspect Formcollection

//FormCollection form System.Text.StringBuilder st = new System.Text.StringBuilder(); foreach (string key in form.Keys) { st.AppendLine(String.Format("{0} - {1}", key, form.GetValue(key).AttemptedValue)); } string formValues = st.ToString();
How to inspect a formcollection object in C#

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.