By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

How to write html tags onto a page ????

P: n/a
OK i know it sounds little bit wierd but here is what i have to do. I have a
database in which i store questions and answers, but the questions are about
HTML, Javascript, ASP...... So i store into my database a question like
'How do you make a letter/word in HTML bold?

Now i put the answer
<b></b>
Now i have to write out the answer
but when i do this it dosent write out on the page as it is HTML.
I know that it should be written to the db as
&lt;b&gt;&lt;/b&gt; but how can i do this???


Nov 24 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> &lt;b&gt;&lt;/b&gt; but how can i do this???
I mean, the person that fills in the questions and answers fills them as
they are
<b></b> not &lt;b&gt;&lt;/b&gt; so what i wonted to know is how to
transform
<b></b> to &lt;b&gt;&lt;/b&gt;
or if anybody has other ideas???
"polilop" <fm******@inet.hr> wrote in message
news:Oi*************@TK2MSFTNGP15.phx.gbl...
OK i know it sounds little bit wierd but here is what i have to do. I have
a database in which i store questions and answers, but the questions are
about HTML, Javascript, ASP...... So i store into my database a question
like
'How do you make a letter/word in HTML bold?

Now i put the answer
<b></b>
Now i have to write out the answer
but when i do this it dosent write out on the page as it is HTML.
I know that it should be written to the db as
&lt;b&gt;&lt;/b&gt; but how can i do this???

Nov 24 '05 #2

P: n/a
Found it
Response.write(Server.HTMLEncode("<b></b>"))

"polilop" <fm******@inet.hr> wrote in message
news:Om**************@TK2MSFTNGP15.phx.gbl...
&lt;b&gt;&lt;/b&gt; but how can i do this???

I mean, the person that fills in the questions and answers fills them as
they are
<b></b> not &lt;b&gt;&lt;/b&gt; so what i wonted to know is how to
transform
<b></b> to &lt;b&gt;&lt;/b&gt;
or if anybody has other ideas???
"polilop" <fm******@inet.hr> wrote in message
news:Oi*************@TK2MSFTNGP15.phx.gbl...
OK i know it sounds little bit wierd but here is what i have to do. I
have a database in which i store questions and answers, but the questions
are about HTML, Javascript, ASP...... So i store into my database a
question like
'How do you make a letter/word in HTML bold?

Now i put the answer
<b></b>
Now i have to write out the answer
but when i do this it dosent write out on the page as it is HTML.
I know that it should be written to the db as
&lt;b&gt;&lt;/b&gt; but how can i do this???


Nov 24 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.