Welcome to WebmasterWorld Guest from 54.226.183.49

Forum Moderators: ocean10000

Message Too Old, No Replies

Printing the <channel>

Goes

     

ukgimp

2:58 pm on Aug 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The moment I get close to being able to write the tag <channel> in asp it goes very wrong

Response.Write(chr(60))
Response.Write(chr(99))
Response.Write("hannel")
Response.Write(chr(62))

is there some issue with the word channel?

Cheers

ukgimp

3:11 pm on Aug 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok it looks like channel is a reserved word. So how do i go about using reserved words?

macrost

7:36 pm on Aug 10, 2004 (gmt 0)

10+ Year Member



I'm pretty sure that channel isn't a reserved word. Is there a reason you are priting it out like that?

mattglet

7:49 pm on Aug 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



By using the Response.Write method, you are just sending the text to be outputted as HTML. ASP shouldn't care at all what's between your quotes, as long as it's syntactically correct.

ukgimp

9:20 am on Aug 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks for your responses

First off I tried to print

Response.Write("<channel>")

so i assumed wrongly that the < was the problem. Afet rmuch messing arounf I found it was not, I can writre everything as long as the word does not read channel

If it is not a reserved word, whatis going on

This works fine:

Response.Write("<[channel]>")

elmarpanzenberger

12:25 pm on Aug 11, 2004 (gmt 0)

10+ Year Member



ukgimp,

this may help you: [w3.org...]

Seems like channel is indeed a reserved word

ukgimp

9:08 am on Aug 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



anyone got any ideas as to how to print this word on the screen without breaking the script?

Cheers

elmarpanzenberger

9:31 am on Aug 12, 2004 (gmt 0)

10+ Year Member



Try this: response.Write("&lt;channel&gt;")
 

Featured Threads

Hot Threads This Week

Hot Threads This Month