Empty Result

Apr 8, 2011 at 9:15 PM

I'm trying to encode query string input using the HtmlEncode, like this:

string errorString = Encoder.HtmlEncode(Request.QueryString["inputString"



What's displayed on the page, however, is just empty--as if errorString is never getting anything assigned to it. I'm referencing the Microsoft.Security.Application DLL and I'm compiling successfully. Any common gotchas for first-timers like myself that might explain this?

Apr 8, 2011 at 9:19 PM

Please ignore - so embarassed... I had a typo in the querystring parameter. Been looking at this off and on for quite some time now and didn't catch it!