473,789 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1316
On 5 May, 08:27, Rishi Boparai <rishibopa...@g mail.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
3331
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 some PHP. I love Dreamweaver MX since it realy simplifies the visual part of the process of making a page and also help with code typos since it generates alot of the basic code automatically (for example, I don't have to know how to write a...
11
2820
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 will help me with PHP. Is it easier to make a website "prettier" with Dreamweaver? Just need guidance on why to use Dreamweaver with PHP. I am using HTML kit or notepad and, of course, Google. Usually use the languages and objects for hitting...
0
2385
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 http://www.decloak.com/Products/Dreamweaver/NestedTemplates/ It's basically a product and extension for building a web site with a navigation menu like
0
2107
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 http://www.decloak.com/Products/Dreamweaver/NestedTemplates/Demos/NestedT_Tongues_of_Fire/ This name is from the BIBLE, "...every man heard them speak in his own language." Acts 2:1-12 NIV
4
3586
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 new things about it, it feels comfortable. I downloaded a trial version of Dreamweaver and am trying to figure out how a lone amateur HTML coder such as myself might use Dreamweaver as an auxiliary tool. Thanks,
1
1212
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 develop the "Code" part using Visual Studio? To do cutting edge stuff, we really need a way to let both programs do what they do best and merge the results without it being a maintenance nightmare. Should the programmers rough in the forms then...
1
2168
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 inherited from System.Web.UI.Page which represents the template (including all components and associated events defined in the template). Then I have a codebehind file for Home.aspx that defines a class (Home) that includes controls specific to...
53
4871
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 or try to develop the web pages directly using HTML and a text editor. I have not had experience building web pages but have had several years experience in programming in C and C++ and in using LaTeX for document preparation. Any advice...
0
1236
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 recreate them for maintenance and updates. creating once more the templates is not a problem, however we cannot figure out how to "attach" the actual pages to the new templates. in dreamweaver when you create a webpage based on a template it...
0
9661
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10403
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10193
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9015
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7524
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5414
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5546
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4087
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.