-1

I want an output:

<input type="text" onclick="alert('\"')" />

But this doesn't work:

Response.Write("<input type=""text"" onclick=""alert('\""')"" />")

it gives me

<input type="text" ')"="" onclick="alert('\">
kazinix
  • 28,987
  • 33
  • 107
  • 157

1 Answers1

-1

This will output what you want:

Response.Write("<input type=""text"" onclick=""alert('\x22')"" />")
Carlos Muñoz
  • 17,397
  • 7
  • 55
  • 80
  • Hm, this is not exactly what I was looking for, my question is just wrong. I want to output the literal " in my `.aspx` page. I figured it out though, I used `"` instead. But you know, your answer is really solves the question. Thanks! – kazinix Aug 01 '11 at 08:02