473,322 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Dreamweaver templates and ASP.net 2

I'm using Dreamweaver to create the layout and manage my ASP.net 2
site. However, all ""code-behind"" is done in Visual Studio 2005

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

It was my understanding that Dreamweaver would leave alone any code
outside of the < html tag However, whenever I update my template,
the ASP.net declarations in the pages based on the template are
removed by Dreamweaver. This means my pages lose the ""link"" to their
code-behind files. Which is BAD!

The weird thing is, that if I remove for example the ""@"" from the
declaration (therefore making it an incorrect declaration) then DW
leaves the code on the page. What this means is that DW only has
problems with ASP.net declarations. Its quite happy to leave any other
text or code.

What can I do?

Thanks.
Jun 27 '08 #1
1 1300
On 5 May, 08:27, Rishi Boparai <rishibopa...@gmail.comwrote:
I'm using Dreamweaver to create the layout and manage my ASP.net 2
site. However, all ""code-behind"" is done in Visual Studio 2005

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

It was my understanding that Dreamweaver would leave alone any code
outside of the < html tag However, whenever I update my template,
the ASP.net declarations in the pages based on the template are
removed by Dreamweaver. This means my pages lose the ""link"" to their
code-behind files. Which is BAD!

The weird thing is, that if I remove for example the ""@"" from the
declaration (therefore making it an incorrect declaration) then DW
leaves the code on the page. What this means is that DW only has
problems with ASP.net declarations. Its quite happy to leave any other
text or code.

What can I do?

Thanks.
Dear Rishi

I too have tried in the past to use DW in conjunction with VS. I had
similar problems and in the end relented and now work exclusively in
VS. They don't live happily together. DW is designed to be a site
manager or to be used in collaboration with others using the same
tool.

DW does have its own way of handling ASP.NET and provides basic
support, essentially for page development in script mode. As you've
probably noticed it is not as sophisiticated as VS for code editing
which I assume is why you are doing your code behind files in VS. It's
a pity really because VS not as good as DW when it comes to visual
(design mode) editing of the .aspx file, though I've found it does
help if you turn on the visual aides in VS so you can see the layout
tags.

However, since version 2 of ASP.NET and the introduction of Master
pages I wouldn't go back to DW templates. By comparison DW templates
are a weaker method of maintaining common layouts. Any changes to a DW
template and you have to re-upload all pages that use them, whereas
with master pages any changes are reflected immediately in content
pages without having to touch them.

There is also the question of themes in ASP.NET I only have version
2004 of DW which is too old to have any support whatever for themes. I
don't know about later versions. Having said that Fireworks is great
for images. I still use it. VS has no equivalent.

On a more general note, my advice to anyone using either of those
tools is learn HTML thoroughly - especially CSS styles. Don't just
rely on visual editors to do everything for you. It's surprising what
layout, appearance and other problems you can fix by knowing exactly
how it all works. Visual editors seem to make a lot of mistakes when
you try to make changes and refinements - sometimes they refuse let
you do things at all!

HTH
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: davidshook | last post by:
I am a begginer with not too much time on my hand. I do some html pages with Dreamweaver and with some minor Flash actionscript and I have a minor ability (with the help of lots of tutorials) to do...
11
by: jm | last post by:
Somebody on here recommended Dreamweaver with PHP. I am coming from (still using really) ASP and ASP.NET. PHP is more like ASP and not a whole lot like .net, but I wanted to know how Dreamweaver...
0
by: dc | last post by:
Hello. I am looking for some Beta Testers for a new product called "Nested Templates" that uses a Dreamweaver MX Extension. More info can be found here...
0
by: dc | last post by:
Product Announcement: Multi-Lingual web site using Nested Templates and Menus http://www.decloak.com/Products/Dreamweaver/NestedTemplates/ You can see the TONGUES of FIRE demo web site at...
4
by: Teffy | last post by:
Folks who use both HTML-Kit and a WYSIWYG editor such as Dreamweaver: which tasks are done in which editor? I have been using HTML-Kit to edit HTML for some time, and while I am always learning...
1
by: Art Vandelay | last post by:
Does anyone have any real world experience or recommendations of how to let our hardcore designers use Dreamweaver, CSS, and Templates(the pretty part) while letting our hardcore programmers...
1
by: Mark | last post by:
Hopefully somebody can help me with this very frustrating problem. In Dreamweaver I have a template page and a page created from this template called Home.aspx. In Visual Studio I have a class...
53
by: MajorSetback | last post by:
I am starting up a home business and will be setting up a web site to market the software that I will be developing in C++. I was wondering if I should buy something like Dreamweaver or Frontpage...
0
by: Gianni Rondinini | last post by:
hi all. i hope i'm not off topic: please tell me if i am. we have a website which was made using some templates. due to a hard disk fail, we've lost the templates we had used, then we need to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.