homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Printing the <channel>
Goes
ukgimp




msg:944299
 2:58 pm on Aug 10, 2004 (gmt 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

 

ukgimp




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

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

macrost




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

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

mattglet




msg:944302
 7:49 pm on Aug 10, 2004 (gmt 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.

ukgimp




msg:944303
 9:20 am on Aug 11, 2004 (gmt 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]>")

elmarpanzenberger




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

ukgimp,

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

Seems like channel is indeed a reserved word

ukgimp




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

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

Cheers

elmarpanzenberger




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved