Welcome to WebmasterWorld Guest from 52.206.226.77

Forum Moderators: ocean10000

Message Too Old, No Replies

Why asp comment doesn't work

     
6:33 pm on Jul 17, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


I get an error on a page and if I comment out the line that is erroring like this

<!-- <cc1:WYSIWYGEditor id="WYSIWYGEditor1" runat="server" btnCssText="False" btnPreview="False" UseTagSelector="False" scriptPath="../scripts/">
</cc1:WYSIWYGEditor> -->

I still get the same error. It's not that big of a deal, I was just wondering if anyone knows why?

7:11 pm on July 17, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


<!-- --> <-- Those are html comments not asp comments. Meaning Asp will still process the controls inside of the comments. But the web browser will not display them.
4:19 pm on July 20, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 13, 2005
posts:1078
votes: 0


The web server compiles all dynamic content first (ASP/ASPX stuff) before it gets to an HTML. So that webpart is getting processed before IIS even knows about the HTML comment tags.