473,395 Members | 1,577 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,395 software developers and data experts.

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.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 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 2142
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**************@tk2msftngp13.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.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 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
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...
17
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...
6
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...
4
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...
3
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,...
22
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...
2
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...
15
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.