How can I change the Comparer of ASP.NET's Request.Form collection?

valsareun

New Member
ASP.NET's \[code\]Request.Form["key"]\[/code\] collection uses a case-insensitive Comparer. This is screwing me up because I've got form POST data that looks like:\[code\]"subject=MySubjectLowerCase&Subject=MySubjectUpperCase"\[/code\]As a result, \[code\]Request.Form["subject"]\[/code\] (or \[code\]Request.Form["Subject"]\[/code\] for that matter) return both values:\[code\]MySubjectLowerCase,Subject=MySubjectUpperCase\[/code\]but what I want is the single value for my particular key, with case-sensitivity.How can I change the Comparer to case-sensitive?
 
Back
Top