Re: Displaying User-Supplied String



"Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message news:OQP8jRhBIHA.4496@xxxxxxxxxxxxxxxxxxxxxxx

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...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

.



Relevant Pages

  • Re: VERY Frustrated
    ... I built the solution and then executed the server.exe file and set my client ... Additional information: The underlying connection was closed: The remote ... > exception may have been caused by your .NET remoting component as well as ... > When the unhandled exception will be raised, VS will tell you what it is, ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: System.NullReferenceException
    ... > An unhandled exception of type 'System.NullReferenceException' occurred in ... > I get the error when I access register function. ... > After the client app crashes I restart the client and I can access the ... at server or at client? ...
    (microsoft.public.dotnet.framework.remoting)
  • MAPI control with C# causes exception when calling Send()
    ... MSMAPI.MAPISessionClass session = new MSMAPI.MAPISessionClass; ... When my default client is Outlook Express, ... An unhandled exception of type ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cannot Get XML Config file to Work
    ... > To my surprise, when I configure my client ... perhaps the config line should be ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: [opensuse] Migrating from Thunderbird
    ... Note that 'mutt' can read maildir and save as mbox and vice-versa. ... Now, that doesn't surprise me;-p ... any client that read and writes both should be able to do it by ...
    (SuSE)