hi guys,
as Internet Explorer shows   as space (pay attention!! " ", not " ")
I'd seen a method in .Net that implements it,
but I don't remember what method (this is not HttpUtility.HtmlDecode())
thanks a lot !
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Jan 30, 2011, 1:23 PM
So other members can easily find the answers.
Suthish NairPosted Jan 30, 2011, 4:02 AM
or try as below
Sam HobbsPosted Jan 30, 2011, 3:24 AM
Where is the HTML file? Is it on a disk in your local system or is it in a web site?
john smithPosted Jan 30, 2011, 2:22 AM
Firstly, thanks for your replies my friends!
To make my task clearer:
I get an Html source text (".........") and have to show the text in a TextBox.
The special characters (" ", "<") have to be shown in the TextBox like they are shown in the html (space, "<").
(I don't want to put a browser in my application).
Additionaly, I have the expression " " which was " " before.
My boss told me he saw in his eyes, a .Net method that replaces both " " (without the ';') and " " to space.
(Internet Explorer of Microsoft shows " " without ';' as a space.
So, my job is to look for the .Net method that replaces/shows " " as space.
Thanks.
Sam HobbsPosted Jan 27, 2011, 3:19 PM
I think you are trying to solve a problem and you think you have a solution and you are asking for help with the solution. If you were to describe what the fundamenatl problem is that you are trying to solve, you are more likely to get the most useful answer. So what do you need to do when you need to convert that text?
Suthish NairPosted Jan 27, 2011, 3:11 PM
john smithPosted Jan 27, 2011, 1:47 PM
i want .net method (by Microsoft) that replaces " " (without the ; in the end) to space.
thanks.
john smithPosted Jan 27, 2011, 1:44 PM
thanks for help. but I didn't understand all.
could you please show me the full C# code?
and tell me if you used any references.
Thanks in advance
Suthish NairPosted Jan 27, 2011, 11:55 AM
Response.Write(Server.HtmlDecode("s n"));Response.Write("
");
Response.Write(Server.HtmlDecode("s n"));