Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Answering from an ASP.NET perspective.</p> <p>I was excited when I found <a href="https://stackoverflow.com/questions/187482/how-can-i-use-the-button-tag-with-asp-net">this question</a> and some code for a ModernButton control, which, in the end, is a <code>&lt;button&gt;</code> control.</p> <p>So I started adding all sorts of these buttons, decorated with <code>&lt;img /&gt;</code> tags inside of them to make them stand out. And it all worked great... in Firefox, and Chrome.</p> <p>Then I tried IE6 and got the "a potentially dangerous Request.Form value was detected", because IE6 submits the html inside of the button, which, in my case, has html tags in it. I don't want to disable the validateRequest flag, because I like this added bit of data validation.</p> <p>So then I wrote some javascript to disable that button before the submit occurred. Worked great in a test page, with one button, but when I tried it out on a real page, that had other <code>&lt;button&gt;</code> tags, it blew up again. Because IE6 submits ALL of the buttons' html. So now I have all sorts of code to disable buttons before submit.</p> <p>Same problems with IE7. IE8 thankfully has this fixed.</p> <p>Yikes. I'd recommend not going down this road IF you are using ASP.NET.</p> <p><strong>Update:</strong></p> <p>I found a library out there that looks promising to fix this.</p> <p>If you use the ie8.js script from this library: <a href="http://code.google.com/p/ie7-js/" rel="nofollow noreferrer" title="http://code.google.com/p/ie7-js/">http://code.google.com/p/ie7-js/</a></p> <p>It might work out just fine. The IE8.js brings IE5-7 up to speed with IE8 with the button tag. It makes the submitted value the real value and only one button gets submitted.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload