Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to write html tags onto a page ????

Reply
Thread Tools

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

 
 
polilop
Guest
Posts: n/a
 
      11-24-2005
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???




 
Reply With Quote
 
 
 
 
polilop
Guest
Posts: n/a
 
      11-24-2005
> &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" <> wrote in message
news:...
> 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???
>
>
>
>



 
Reply With Quote
 
 
 
 
polilop
Guest
Posts: n/a
 
      11-24-2005
Found it
Response.write(Server.HTMLEncode("<b></b>"))

"polilop" <> wrote in message
news:...
>> &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" <> wrote in message
> news:...
>> 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???
>>
>>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer Rob Nicholson ASP .Net 3 05-28-2005 03:11 PM
how do I "write" an ASP.Net onto the page in code? bennett@peacefire.org ASP .Net 4 05-11-2005 05:59 AM
Photo quality - onto paper or onto CD? Theseeker Digital Photography 8 10-04-2004 08:59 PM
RegEx to find CFML tags nested in HTML tags Dean H. Saxe Perl 0 01-03-2004 06:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57