Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - HELP: Visual Studio + Dreamweaver, Page Inheritence + Templates

 
Thread Tools Search this Thread
Old 03-27-2005, 09:53 PM   #1
Default 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





Mark
  Reply With Quote
Old 03-28-2005, 02:39 PM   #2
Mark
 
Posts: n/a
Default Re: Visual Studio + Dreamweaver, Page Inheritence + Templates
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" <swozz_@hotmail.com> wrote in message
news:...
> 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
>
>
>





Mark
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MCTS on Visual Studio 2005 Exams soon to be Discontinued? IT.VP MCTS 0 08-21-2009 09:32 PM
Crytal Reports and Visual Studio 2005 Images not displaying peterc Software 2 01-21-2009 07:00 AM
Product of Visual Studio 2008 needed for 70-536, 70-562 and 70-564 Benjamin Rogers MCTS 1 11-26-2008 05:54 PM
Re: visual studio 2008 for studying 70-536 Marc MCTS 0 07-03-2008 01:11 PM
what do i need to write DVDs? Marcellus Wallace DVD Video 91 12-02-2003 02:55 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46