Forums

ASP

This topic is locked

Dreamweaver templates and ASP.net declarations

Posted 06 Jan 2006 21:29:32
1
has voted
06 Jan 2006 21:29:32 Stephen Gilkes posted:
Hi all

On my ASP.net 2 pages I need to have a different declaration at the top of each page, e.g.:

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="annual-travel-insurance.aspx.vb" Inherits="travel_insurance_annual_travel_insurance" %>

However, when I update my template, this code is removed by Dreamweaver.

What can I do?

Replies

Replied 31 Aug 2007 10:01:30
31 Aug 2007 10:01:30 rooban nadarajah replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi all

On my ASP.net 2 pages I need to have a different declaration at the top of each page, e.g.:

&lt;%@ Page Language="VB" AutoEventWireup="true" CodeFile="annual-travel-insurance.aspx.vb" Inherits="travel_insurance_annual_travel_insurance" %&gt;

However, when I update my template, this code is removed by Dreamweaver.

What can I do?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 31 Aug 2007 10:05:16
31 Aug 2007 10:05:16 rooban nadarajah replied:
Insert this &lt;%--'comment--%&gt; after your codebehind code


Like this
&lt;%@ Page Language="VB" AutoEventWireup="true" CodeFile="annual-travel-insurance.aspx.vb" Inherits="travel_insurance_annual_travel_insurance" %&gt;
&lt;%--'comment--%&gt;

Inser this &lt;%--'comment--%&gt; to your template page as well

Regards
Rooban


<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi all

On my ASP.net 2 pages I need to have a different declaration at the top of each page, e.g.:

&lt;%@ Page Language="VB" AutoEventWireup="true" CodeFile="annual-travel-insurance.aspx.vb" Inherits="travel_insurance_annual_travel_insurance" %&gt;

However, when I update my template, this code is removed by Dreamweaver.

What can I do?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic