Dreamweaver and Disappearing ASP.NET Directives

If you are working with Dreamweaver templates and your ASP.NET directives keep disappearing try the following.

Place <%–’comment–%> on the second line after your page declaration on your content pages. You can leave your template as is.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="default" %>
<%--'comment--%>

You do not need to set the <!– TemplateInfo codeOutsideHTMLIsLocked=”false” –> to true.

This is a known issue with Adobe and is documented at the following location.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=904108&CFID=5847520&CFTOKEN=2b43e1ac5acd855c-9C3AF47E-A7F5-CA4F-96F62067027BA8F4&jsessionid=48307414b6ae332c3e4f


Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter

Related Posts

Tags: , , , ,

Leave a Reply





Donate

If you found this article useful and would like to see more like it this please consider making a donation.

Sponsors