Forum Moderators: open

Message Too Old, No Replies

Why asp comment doesn't work

         

andrewsmd

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

WebmasterWorld Senior Member 10+ Year Member



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?

Ocean10000

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

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<!-- --> <-- 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.

carguy84

4:19 pm on Jul 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.