I\'d like to use the newer tag in an ASP.NET website which, among other things, allows CSS-styled text and embedding a graphic inside the button.
I've been struggling all day with this -- my custom <button/>
generated control not working:
System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client
What happens is that .Net adds a name
attribute:
<button type="submit" name="ctl02" value="Content" class="btn ">
<span>Content</span>
</button>
The name
attribute throws the server error when using IE 6 and IE 7. Everything works fine in other browsers (Opera, IE 8, Firefox, Safari).
The cure is to hack away that name
attribute. Still I haven't figured that out.