Problem with text when inserting into text box

G

Guest

Hi guys, I am copying text from Microsoft Word 2003 into a asp.net text box then writing the textbox to a file. My problem is, when I go to display the file using regular asp, it get all these special characters that word has put in for the quotes and aposterphies. is there a way I can solve this before I write to the file? Does asp1.0 take care of this somehow? Or do I need to use a 3rd party app or a second step in word to correct this?

I know this may not be the right forums to post this type of question.
My appologies.

Robert Halstead
 
S

Somchai U.

Use Server.HtmlEncode() function.

Somchai

Robert Halstead said:
Hi guys, I am copying text from Microsoft Word 2003 into a asp.net text
box then writing the textbox to a file. My problem is, when I go to display
the file using regular asp, it get all these special characters that word
has put in for the quotes and aposterphies. is there a way I can solve this
before I write to the file? Does asp1.0 take care of this somehow? Or do I
need to use a 3rd party app or a second step in word to correct this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top