Ask a Question related to Dreamweaver AppDev, Design and Development.
-
RichMcCrea #1
Dreamweaver template code rearranged by Studio.NETvisual designer
I have used Dreamweaver MX2004 to create a C# ASP.NET website. I used the
template functionality to give me consistant page design. My problem is if I
edit those pages visually in Studio.NET, Studio rearranges the tags. Studio
stacks the three tags <HTML><HEAD> and <TITLE> back to back and moves the
dreamweaver template tags after the title tags. Since these are comments I am
sure Studio thinks it has no effect, but after saving the Studio Edited pages
and attempting to modify (and push the changes to the pages based on that
template), you get mismatched tag errors. I have become fairly good at
rearranging these tags (with an outside editor since dreamweaver locks template
regions) and sometimes resort to removing the template and reapplying the
template. But THERE HAS TO BE A BETTER WAY. Richard McCrea Thanks in advance
for your help
RichMcCrea Guest
-
Can't View Item Template in Designer Viewer
Hi, I creted a usercontrol which has an ITemplate in it named ItemTemplate. I am using ASP 2.0. When I drag the user control on to my .aspx... -
rearranged dreamweaver code fix
There is an annoying problem where Visual Studio rearranges Dreamweaver template markers (which are really just comments so VS should ignore them). ... -
Control Render Method Problem and the Visual Studio Designer
Hello List, I have a web control library that has both Render and OnPreRender methods. My problem is that when I drag and drop my control onto the... -
Displaying template content in vs.net designer
hi, I'm trying to display the content within my "templated databound custom controls" templates at design time, in the vs.net designer. I'm able to... -
Subclassing UserControl makes the Visual Studio designer does not work
I want to subclass the System.Web.UI.UserControl to make a common control for my site. Then, when I create a new UserControl from the Visual Studio... -
Randy Edmunds #2
Re: Dreamweaver template code rearranged by Studio.NET visual designer
Yes. Same thing happens if you view page in IE (and supposedly Netscape)
and then "Save As..".
Better way? Use DW if you need to edit visually. :)
Hope this helps,
Randy
RichMcCrea wrote:> I have used Dreamweaver MX2004 to create a C# ASP.NET website. I used the
> template functionality to give me consistant page design. My problem is if I
> edit those pages visually in Studio.NET, Studio rearranges the tags. Studio
> stacks the three tags <HTML><HEAD> and <TITLE> back to back and moves the
> dreamweaver template tags after the title tags. Since these are comments I am
> sure Studio thinks it has no effect, but after saving the Studio Edited pages
> and attempting to modify (and push the changes to the pages based on that
> template), you get mismatched tag errors. I have become fairly good at
> rearranging these tags (with an outside editor since dreamweaver locks template
> regions) and sometimes resort to removing the template and reapplying the
> template. But THERE HAS TO BE A BETTER WAY. Richard McCrea Thanks in advance
> for your help
>Randy Edmunds Guest
-
RichMcCrea #3
Re: Dreamweaver template code rearranged by Studio.NETvisual designer
Randy. I know MS is bad for rearranging tags which (because they are
comments) should not matter where they are. I usually right click my aspx page
in studio and say view code (avoiding the visual editor) for this reason. But,
I thought maybe there was maybe a way I could arrange my tags in my template
pages so they wouldn't be subject to studio's bad reorganizing. the template
page begins... <%@ Page Language='C#' ContentType='text/html'
ResponseEncoding='iso-8859-1' %> <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01
Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> <html> <head> <meta
http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <!--
TemplateBeginEditable name='doctitle' --> <title>Untitled Document</title> <!--
TemplateEndEditable --> and the pages based on this document end up like...
<%@ Register TagPrefix='MM' Namespace='DreamweaverCtrls'
Assembly='DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,cultu
re=neutral' %> <%@ Page Language='c#' ContentType='text/html'
ResponseEncoding='iso-8859-1' CodeBehind='index.aspx.cs'
AutoEventWireup='false' Inherits='ufportal.index' %> <!DOCTYPE HTML PUBLIC
'-//W3C//DTD HTML 4.01 Transitional//EN'
'http://www.w3.org/TR/html4/loose.dtd'> <html><!-- InstanceBegin
template='/Templates/uftemp1.dwt.aspx' codeOutsideHTMLIsLocked='false' -->
<head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<!-- InstanceBeginEditable name='doctitle' --> <title>Main Menu</title> <!--
InstanceEndEditable --> as you probably know, after visual editing (which is
sometimes necessary in our environment) it becomes <HTML><HEAD><TITLE> (then
the template comments) I could live without the metadata tag, but I cannot
control where MM puts the <!-- InstanceBegin
template='/Templates/uftemp1.dwt.aspx' codeOutsideHTMLIsLocked='false' --> tag.
The title tag wrapper is a nuisance as well, since after studio it no longer
wraps the <TITLE> tags. Microsoft is definately the bad guy for rearrangeing
code it doesn't need to, but could Macromedia's template update routine be more
forgiving and fix what the bad guy breaks. I know 'If wishes were horses,
dreamers would ride'. Whisper into one of those wonderful ears there at
macromedia for me. Rich McCrea
RichMcCrea Guest
-
Murray *TMM* #4
Re: Dreamweaver template code rearranged by Studio.NET visual designer
> Whisper into one of those wonderful ears there at
Your lips into their ears -> macromedia for me.
[url]http://www.macromedia.com/support/email/wishform/[/url]
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"RichMcCrea" <webforumsuser@macromedia.com> wrote in message
news:cv60q1$n5t$1@forums.macromedia.com...> Randy. I know MS is bad for rearranging tags which (because they are
> comments) should not matter where they are. I usually right click my aspx
> page
> in studio and say view code (avoiding the visual editor) for this reason.
> But,
> I thought maybe there was maybe a way I could arrange my tags in my
> template
> pages so they wouldn't be subject to studio's bad reorganizing. the
> template
> page begins... <%@ Page Language='C#' ContentType='text/html'
> ResponseEncoding='iso-8859-1' %> <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
> 4.01
> Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> <html> <head>
> <meta
> http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <!--
> TemplateBeginEditable name='doctitle' --> <title>Untitled Document</title>
> <!--
> TemplateEndEditable --> and the pages based on this document end up
> like...
> <%@ Register TagPrefix='MM' Namespace='DreamweaverCtrls'
> Assembly='DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,cultu
> re=neutral' %> <%@ Page Language='c#' ContentType='text/html'
> ResponseEncoding='iso-8859-1' CodeBehind='index.aspx.cs'
> AutoEventWireup='false' Inherits='ufportal.index' %> <!DOCTYPE HTML PUBLIC
> '-//W3C//DTD HTML 4.01 Transitional//EN'
> 'http://www.w3.org/TR/html4/loose.dtd'> <html><!-- InstanceBegin
> template='/Templates/uftemp1.dwt.aspx' codeOutsideHTMLIsLocked='false' -->
> <head> <meta http-equiv='Content-Type' content='text/html;
> charset=iso-8859-1'>
> <!-- InstanceBeginEditable name='doctitle' --> <title>Main Menu</title>
> <!--
> InstanceEndEditable --> as you probably know, after visual editing (which
> is
> sometimes necessary in our environment) it becomes <HTML><HEAD><TITLE>
> (then
> the template comments) I could live without the metadata tag, but I
> cannot
> control where MM puts the <!-- InstanceBegin
> template='/Templates/uftemp1.dwt.aspx' codeOutsideHTMLIsLocked='false' -->
> tag.
> The title tag wrapper is a nuisance as well, since after studio it no
> longer
> wraps the <TITLE> tags. Microsoft is definately the bad guy for
> rearrangeing
> code it doesn't need to, but could Macromedia's template update routine be
> more
> forgiving and fix what the bad guy breaks. I know 'If wishes were horses,
> dreamers would ride'. Whisper into one of those wonderful ears there at
> macromedia for me. Rich McCrea
>
Murray *TMM* Guest
-
Randy Edmunds #5
Re: Dreamweaver template code rearranged by Studio.NET visual designer
I played around with this a bit and I think I have a workaround.
If you move the "InstanceBegin" and "InstanceEnd" markers outside of the
<html> and </html> tags, respectively, then both VS.Net and DW seem to
behave nicely. I did not test IE, but I assume it uses the same logic.
Note I only did a test of updating a simple Template -- this needs
testing of all Template features such as nested Templates.
Unfortunately, current you will need to update all (current and future)
pages created from a Template manually using a tool other than DW! I
have not found any way to update the Template itself automate this.
Also, DW marks the <html> tag as invalid, but it does not seem to break
anything!
Hope this helps,
Randy
RichMcCrea wrote:> I thought maybe there was maybe a way I could arrange my tags in my template
> pages so they wouldn't be subject to studio's bad reorganizing.Randy Edmunds Guest
-
Murray *TMM* #6
Re: Dreamweaver template code rearranged by Studio.NET visual designer
It sounds scary to me, Randy....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Randy Edmunds" <randy_nospam@macromedia.com> wrote in message
news:421B7144.2070707@macromedia.com...>I played around with this a bit and I think I have a workaround.
>
> If you move the "InstanceBegin" and "InstanceEnd" markers outside of the
> <html> and </html> tags, respectively, then both VS.Net and DW seem to
> behave nicely. I did not test IE, but I assume it uses the same logic.
>
> Note I only did a test of updating a simple Template -- this needs testing
> of all Template features such as nested Templates.
>
> Unfortunately, current you will need to update all (current and future)
> pages created from a Template manually using a tool other than DW! I have
> not found any way to update the Template itself automate this.
>
> Also, DW marks the <html> tag as invalid, but it does not seem to break
> anything!
>
> Hope this helps,
> Randy
>
>
>
> RichMcCrea wrote:>>> I thought maybe there was maybe a way I could arrange my tags in my
>> template pages so they wouldn't be subject to studio's bad reorganizing.
Murray *TMM* Guest
-
RichMcCrea #7
Re: Dreamweaver template code rearranged by Studio.NETvisual designer
Eeeeekkks... I tried that.. When editing the template.. DW re-adds the
template tags where it thinks they belong... <!-- InstanceBegin
template='/Templates/uftemp1.dwt.aspx' codeOutsideHTMLIsLocked='false' -->
<html><!-- InstanceBegin template='/Templates/uftemp1.dwt.aspx'
codeOutsideHTMLIsLocked='false' --> <head> and then re-editing in studio
causes... <HTML> <HEAD> <title>My Recent Time</title> <meta
http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <!--
InstanceBegin template='/Templates/uftemp1.dwt.aspx'
codeOutsideHTMLIsLocked='false' --> <!-- InstanceBegin
template='/Templates/uftemp1.dwt.aspx' codeOutsideHTMLIsLocked='false' -->
<!-- InstanceBeginEditable name='doctitle' --> <!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name='head' --> doubling up the templates in the
same place again. I appears that unapplying the template and reapplying (after
ripping out the stuff added by the template) is the best method. I have gotten
good at rearranging them in my external editor. Sigh.
RichMcCrea Guest
-
Randy Edmunds #8
Re: Dreamweaver template code rearranged by Studio.NET visual designer
OK. Thanks for trying. It was a long shot, but that one has been bugging
me for some time, so I thought I'd mention it.
Thanks,
Randy
> Eeeeekkks... I tried that.. When editing the template.. DW re-adds the
> template tags where it thinks they belong...Randy Edmunds Guest



Reply With Quote

