![]() |
|
|
|||||||
![]() |
ASP Net - HELP: Visual Studio + Dreamweaver, Page Inheritence + Templates |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |