Chapter 12 - Forms

Code for a table inside of a form


Code for a form using CSS



      There is a page at http://rickleinecker.com/HTDE/ShowFormData.aspx that will show you form data that was submitted including the field names and data.

Here is the code that was used to create the page. You can use this in your own ASPX pages:
NameValueCollection objCollection = Request.Form;
foreach (string strKey in objCollection.AllKeys)
{
	Response.Write(String.Format("Key:{0}, Value:{1}\r\n", strKey, objCollection[strKey]));
}
           
Code for ASP.NET form