Hello from a first time poster,
I'm looking to use Dreamweaver to edit .aspx files that use
ASP.NET 2.0 master pages. So far, I feel like I'm halfway to
getting them to work. But now Dreamweaver itself is getting in the
way.
On a hunch, I set up a Testing Server for my site. I selected
"ASP.NET C#" as the server model, set the access to "Local/Network"
and set the Temporary server folder to the root folder of my
organization's internal test site. This works (mostly) with our
current .aspx pages, which are ASP.NET C#, but use .NET 1.1.
Our IT department is moving towards .NET 2.0, so we're
currently testing Dreamweaver's compatibility. Using the same
Testing Server setup (on a 2.0 server), I used the "Live Data View"
button to compile an .aspx page that uses a master page. The error
the server returned is why I'm posting here.
quote:
Parser Error Message: Only Content controls are allowed
directly in a content page that contains Content controls.
Source Error:
Line 17: </div>
Line 18: </asp:Content>
Line 19: <!-- MMDW:success -->
It appears that Dreamweaver is injecting a comment into the
.aspx page to denote that it successfully interacted with the
server. However, .NET 2.0 Master pages do not allow any top-level
code that is not directly related to the master page template. Thus
Dreamweaver's claims of "success" actually
cause failure.
Has anyone else encountered this before? Is there any way to
prevent DW from inserting that comment?
Thank you for any help you can provide,
- Jon Waller
- Web Specialist
- Ontario College of Teachers