473,770 Members | 6,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP: Visual Studio + Dreamweaver, Page Inheritence + Templates

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.P age 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 Home.aspx only.

The problem I have is whenever I load up Home.aspx in Visual Studio, and
then select View Code - the editor automatically inserts all the controls
from the Home.aspx page straight into the class definition. This means the
controls are then duplicated since they are already defined (as Protected
members) in the class that Home inherits from. This means I have to keep
manually deleting them.

I know why it does this since the controls exist on the both the template
and the Home.aspx and VS doesn't understand Dreamweaver templates, but since
the controls are defined as Protected then why is it duplicating them! Can I
switch this auto code generation off?

--
Best regards
Mark Baldwin
Software Developer

Nov 19 '05 #1
1 2167
For those that are interested, I have decided to ditch Dreamweaver in favour
of the User Controls functionality that is in Visual Studio. This integrates
perfectly with Visual Studio and provides similiar functionality to
Dreamweaver templates.

--
Best regards
Mark Baldwin
Software Developer

"Mark" <sw****@hotmail .com> wrote in message
news:uo******** ******@tk2msftn gp13.phx.gbl...
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.P age 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 Home.aspx only.

The problem I have is whenever I load up Home.aspx in Visual Studio, and
then select View Code - the editor automatically inserts all the controls
from the Home.aspx page straight into the class definition. This means the
controls are then duplicated since they are already defined (as Protected
members) in the class that Home inherits from. This means I have to keep
manually deleting them.

I know why it does this since the controls exist on the both the template
and the Home.aspx and VS doesn't understand Dreamweaver templates, but
since the controls are defined as Protected then why is it duplicating
them! Can I switch this auto code generation off?

--
Best regards
Mark Baldwin
Software Developer

Nov 19 '05 #2

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

Similar topics

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
17
1567
by: Don Wash | last post by:
Hi All! First of all I would like to say that VS.NET is one of the finest IDE I've used in years. It really helps me code quickly. Workspace management using auto hide windows, minimizing and maximizing of code segments, TO-DO list management and automatic documentation (to name a few) are all superb. So I really want to make the VS.NET IDE the primary development tool for me. However, when it comes to developing ASP.NET websites, I...
6
4858
by: Marty U. | last post by:
I know this topic has been beat to death. However, I was sitting here trying to figure out what Microsoft Does when they develop an ASP.net for WYSIWYG functionality. Visual Studio's sucks to be honest. And I don't believe Microsoft has purchased Dreamweaver to do their designs. Are any of you using Visual Studio exclusively to develop your ASP.net apps? If so do you have any web sites that can demonstrate the result. I am really curious...
4
1684
by: Brian Barnes | last post by:
I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it gives me the error: The file failed to load in the web form designer. Plese correct the following error, then load it again: An exception occurred while trying to create an instance of GManWebSync.templates.WebBase (the base class). The...
3
1417
by: Andy Lim | last post by:
I'm currently working on my second web application using VS 2003/VB.NET, after moved from Dreamweaver MX. one thing that i missed so much in VS2003 is DWMX's great visual, WYSIWYG layout design, and HTML template feature. well, as you know, developing web application is not just about inserting/updating/deleting and displaying data in plain-page design. so, here are my questions: - how to workaround this limitation in VS2003 - how to...
22
1561
by: dw | last post by:
Please help some desperate developers!! We need to create an ASP.NET project via VS.NET 2003 on a networked Win 2003 server that we use for testing, but it keeps generating an error: "The Web server reported the following error when attempting to create or open the Web project located at the following URL:..... HTTP/1.1 500 Internal Server Error." People have said Frontpage Server Extensions (FPSE) have to be on that server; however,...
2
1168
by: Miguel Dias Moura | last post by:
Hello, Until now I have been using Macromedia Dreamweaver to create web sites. I worked in PHP and ASP. However in this moment I work mostly in ASP.NET. What is the best tool to create ASP.NET web sites? I would like something where I can work with code but at same time I can also have a visual idea of what is going on.
15
4716
by: Ronald S. Cook | last post by:
We have graphics/web designers at our firm and then programmers. We're trying to work together without stepping on each other's toes. So far, we've all been using Visual Studio. But, is there something great about Microsoft Expression that the graphics people can use it and the programmers can keep using VS, or should everyone just be on VS? I.e. why did they create Expression? Is it for a different purpose, or exactly what I'm...
3
4504
by: Mickey | last post by:
Anyone know of any compatibility issues between DW and Visual Studio? I've been told me that editing in DW (I'm using CS3 on one computer and 8 on another) can cause compilation errors because of some invisible data that DW inserts. I'd like to use DW for minor updates as I get more familiar with VS. Am I safe to do that? Thanks, Mickey
0
10225
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
10053
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
10001
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
8880
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
7415
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
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
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
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.