Mark,
>> Right. I tested it by surrounding my input with <b> and </b>. To my
>> surprise, it causes an unhandled exception: A potentially dangerous
>> Request.Form value was detected from the client
>> (ctl00$ContentPlaceHolder1$description="<b>Property1</b>").
>
> Yes, that is ASP.NET's standard response to this sort of thing... By
> default, it considers posting of HTML as *potentially* dangerous, as Jesse
> correctly explained...
>
> You have several options here, depending on what you're trying to do...
>
> Can you explain a bit more about what is and, more importantly, what is
> not valid data in this case...
It's a very simple site (
http://www.rentalprofitcalc.com). Visitors enter
several data fields. I then do a postback to a different page. That other
page examines the fields, performs calculations on some of them, and creates
a report. Some fields, such as the property and loan names, are simply
strings that are displayed as is (there is no invalid value).
My background is native programming. Here, the error seems to occur when the
first page is submitted which doesn't involve any of my code. So I'm not
sure how I'm supposed to trap it.
BTW, I tried the same thing (<b> and </b> in the property Description field)
when the app is running online and it still causes an error but does not
display the details.
Thanks.
Jonathan