Web.Config changes:
Inside system.web, after authorization:
<identity impersonate=”true” />
Inside system.webserver (add if needed outside of system.web):
<validation validateIntegratedModeConfiguration=”false” />
Web.Config changes:
Inside system.web, after authorization:
<identity impersonate=”true” />
Inside system.webserver (add if needed outside of system.web):
<validation validateIntegratedModeConfiguration=”false” />
It’s helpful to be able to loop through the form object collection so you know what vars are being posted.
Here is an example from the MSDN docs.
This will display the form vars in a label object…
System.Text.StringBuilder displayValues =
new System.Text.StringBuilder();
System.Collections.Specialized.NameValueCollection
postedValues = Request.Form;
String nextKey;
for(int i = 0; i < postedValues.AllKeys.Length; i++)
{
nextKey = postedValues.AllKeys[i];
if(nextKey.Substring(0, 2) != “__”)
{
displayValues.Append(”
“);
displayValues.Append(nextKey);
displayValues.Append(” = “);
displayValues.Append(postedValues[i]);
}
}
Label1.Text = displayValues.ToString();