Assuming you need this with Visual Studio, you can try the same trick (http://blogs.msdn.com/b/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx) that is used in Visual Studio to hide a vsdoc (Intellisense) file from appearing in the code
that finally renders -
At runtime the server-side conditional if (false) statement will ensure in the above case that the documentation file is not rendered (and executed) as script.
Replace the script tag within the server-side conditional statement with the style settings that you want to use only at design time
Assuming you need this with Visual Studio, you can try the same trick (http://blogs.msdn.com/b/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx) that is used in Visual Studio to hide a vsdoc (Intellisense) file from appearing in the code
that finally renders -
At runtime the server-side conditional if (false) statement will ensure in the above case that the documentation file is not rendered (and executed) as script.
Replace the script tag within the server-side conditional statement with the style settings that you want to use only at design time
.Yilmaz.
Member
2 Points
4 Posts
How to ignore some HTML codes at RunTime
Jun 30, 2010 12:13 AM|LINK
Hi,
I have some HTML codes that I need them to make my site designing easier.
But I don't want them at Run-Time. I wan't ASP to ignore them.
It is something like that:
... Ignoring starts here... <style type="text/css"> .divSmallCell { margin: 9px; background-image: url('/images/Cell.jpg'); width: 306px; height: 165px; } </style> And it ends here... ...How can I do that? What am I supposed to write there?
Thank you!
Ruchira
All-Star
42888 Points
7020 Posts
MVP
Re: How to ignore some HTML codes at RunTime
Jun 30, 2010 05:08 AM|LINK
Hi Yilmaz,
You can comment out the code here just like the following.
<br>Ignoring starts here...<%--<br><br><style type="text/css"><br> .divSmallCell<br> {<br> margin: 9px;<br> background-image: url('/images/Cell.jpg');<br> width: 306px;<br> height: 165px;<br> }<br></style><br><br>--%>And it ends here...<br>
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.Venkatesan I...
Member
642 Points
107 Posts
Re: How to ignore some HTML codes at RunTime
Jun 30, 2010 05:13 AM|LINK
hi,
hope this link will help you out:
http://forums.digitalpoint.com/showthread.php?t=3319
http://www.htmlcodetutorial.com/ignore.html
regards,
venkat
http://venkatesan-iyer.blogspot.com
mvark
Star
7617 Points
1104 Posts
Re: How to ignore some HTML codes at RunTime
Jun 30, 2010 07:58 AM|LINK
Assuming you need this with Visual Studio, you can try the same trick (http://blogs.msdn.com/b/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx) that is used in Visual Studio to hide a vsdoc (Intellisense) file from appearing in the code that finally renders -
<% if(false) { %>
<script type="text/javascript" src="jquery-1.2.6-vsdoc.js"></script>
<% } %>
At runtime the server-side conditional if (false) statement will ensure in the above case that the documentation file is not rendered (and executed) as script.
Replace the script tag within the server-side conditional statement with the style settings that you want to use only at design time
Tech Tips, Tricks & Trivia (T4) | My Code Gallery
.Yilmaz.
Member
2 Points
4 Posts
Re: How to ignore some HTML codes at RunTime
Jul 04, 2010 12:45 PM|LINK
Thank you :)
That worked well. And sorry for delay.