Click to See Complete Forum and Search --> : [RESOLVED] How to Write Characters


bulgarian388
01-13-2007, 02:05 PM
Hi guys, simple question for you all. How do I response.Write a character from its char code? In classic I did it this way:


response.Write("<something value=" & chr(34) & "1" & chr(34) & " />")


How do I go about doing the equivalent in .NET.

Also, how do I set the Charset for the page in .NET. In classic I used:


response.Charset = "utf-8"


But, I have not been able to see something equal in .NET. How would I go about doing this as well?

Thanks in advance!

bulgarian388
01-13-2007, 02:26 PM
Okay, never mind, I figured it out. To write a double quote I had to use the JavaScript \", and I apply the Charset in the Page_Load class.