Welcome to WebmasterWorld Guest from 54.196.17.157

Forum Moderators: ocean10000

Message Too Old, No Replies

Printing the <channel>

Goes

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 6, 2001
posts:2213
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 6, 2001
posts:2213
votes: 0


Ok it looks like channel is a reserved word. So how do i go about using reserved words?
7:36 pm on Aug 10, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 27, 2003
posts:637
votes: 1


I'm pretty sure that channel isn't a reserved word. Is there a reason you are priting it out like that?
7:49 pm on Aug 10, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


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.
9:20 am on Aug 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 6, 2001
posts:2213
votes: 0


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]>")

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

Junior Member

10+ Year Member

joined:June 11, 2003
posts:58
votes: 0


ukgimp,

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

Seems like channel is indeed a reserved word

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 6, 2001
posts:2213
votes: 0


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

Cheers

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

Junior Member

10+ Year Member

joined:June 11, 2003
posts:58
votes: 0


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