CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/31/2007 12:39:53 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
taper
Asp.Net User
Visual Studio Templates10/31/2007 12:39:53 PM

0/0

Hello! 

I'm trying to create a webform template using the export template wizard.

I followed all the steps successfully. I managed to prepare my .cs file appropriately with all the changes I wanted. In the .vstemplate file, I then added the <SupportsMasterPages>true</SupportsMasterPages> tag.

When I create a new webform based on this template, my .cs code file comes out fine and my masterpagefile is referenced correctly in the .aspx file, but I haven't been able to get it to generate dynamically the appropriate <asp:content> tags that reflect the contenplaceholders in the chosen masterpage.

I haven't found any information on this... am I trying to do something impossible? 

taper
Asp.Net User
Re: Visual Studio Templates10/31/2007 4:52:12 PM

0/0

 WOOHOO! Found out how to do it. Maybe not the best way but, an easy way out.

 Here we go...

 

  1. I found the default WebForm template in the folder: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\Web\CSharp\1033\WebForm.zip
  2. Made a copy to my own Template Folder.
  3. Opened the .zip file and edited the CodeBeside.cs to reflect the changes I wanted in my generated code behind file.
  4. Voil?!

Now I get the code behind I wanted, plus the <asp:content> tags automatically generated based on the contentplaceholder tags from the masterPage I choose.

Hope this is useful to someone other than myself.Big Smile
 

 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Learning C# 2005: Get Started with C# 2.0 and .NET Programming Authors: Jesse Liberty, Brian MacDonald, Pages: 528, Published: 2006
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Professional Visual Studio 2005 Team System Authors: Jean-Luc David, Tony Loton, Erik Gunvaldson, Christopher Bowen, Noah Coad, Darren Jefford, Pages: 700, Published: 2006
Windows Forms Programming in Visual Basic .NET Authors: Chris Sells, Justin Gehtland, Pages: 680, Published: 2003
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Pro Sharepoint 2007 Development Techniques Authors: Margriet Bruggeman, Nikander Bruggeman, Pages: 484, Published: 2007

Web:
Visual Studio Templates A number of predefined project and project item templates are installed when you install Visual Studio. You can use one of the many project templates to ...
Visual Studio Template Reference The following links provide reference information about the different aspects of Visual Studio project and item templates.
Windows PowerShell Visual Studio 2005 Templates (C# and VB.NET ... This Visual Studio template adds a C#and/or VB.NET project template for building Windows PowerShell Cmdlets and item templates in both languages to build ...
Visual Studio Templates for MVC Views without Codebehind Files Oct 20, 2008 ... Visual Studio Templates for MVC Views without Codebehind Files. For those of you doing MVC out there you've probably noticed that every time ...
Simple TDD Visual Studio Templates To speed up the creation of solutions like these, I've created two templates to plug into Visual Studio to do it for you. There's one for testing with ...
Missing an item template in Visual Studio 2005? Try this... Twice I’ve installed Visual Studio 2005 (I use the Software Developer flavor, if that matters) and in the end I’ve been missing an item template or two. ...
The Topobase Insiders: Visual Studio Templates Feb 7, 2008 ... To simplify your life when you want to create a new Topobase Plug-in we have created Templates for Visual Studio 2005.
Dynamics CRM Visual Studio Template Oct 30, 2008 ... Dynamics CRM Visual Studio Template. http://blogs.msdn.com/crm/archive/2008/10/ 27/microsoft-dynamics-crm-plug-in-template-for-visual-studio. ...
Creating Visual Studio Project Templates | O'Reilly Media Visual Studio 2005 offers a great tool for those who create largely identical projects--custom project and item templates--that automate project creation ...
Creating your own Visual Studio Project Template Customizing Visual Studio .NET Template. ... Visual Studio is a great editor and comes with a lot of templates pre-defined to fit almost all needs. ...

Videos:
IT-Dev SharePoint DSL Toolkit for Visual Studio (Part 1/2) http://www.it-dev.pl/en/Components/SharePoint_DSL_ToolKit.aspx IT-Dev SharePoint DSL ToolKit for Visual Studio provides a custom Visual Studio proje...
T-Dev SharePoint DSL Toolkit for Visual Studio Video 2 http://www.it-dev.pl/en/Components/SharePoint_DSL_ToolKit.aspx IT-Dev SharePoint DSL ToolKit for Visual Studio provides a custom Visual Studio proje...
Using Master Pages in Visual Studio 2008 This video demonstrate how to use the visual studio master pages feature that allow you to create a template for your website. Enjoy
IT-Dev SharePoint DSL Toolkit for Visual Studio (Part 2/2) http://www.it-dev.pl/en/Components/SharePoint_DSL_ToolKit.aspx IT-Dev SharePoint DSL ToolKit for Visual Studio provides a custom Visual Studio proje...
Worship Software (Visual Slide Studio 2008) PowerPoint, Worship, KJV, Bible, Software, PhotoShop, Templates, Backgrounds, Hymns, Praise Songs, Quotes, VSS2008, Slides, Church, Prophecy, Revelat...
Run PHP in Visual Studio I found out today that you can run PHP in visual studio. This is great because you get both intellisense and can debug your scripts. They even got sm...
Bible Search Engine (Visual Slide Studio 2008) bible software inbuilt slides templates backgrounds worship church presenetation software
Using Master Pages in Visual Studio 2008 This video demonstrate how to use the visual studio master pages feature that allow you to create a template for your website. Enjoy
Templates Excelum Framework para Visual Studio 2005 Los templates de Excelum Framework en acción
Church Sermon Software (Visual Slide Studo 2008) worship software powerpoint backgrounds templates music bibles sermons pastors church




Search This Site:










visual studio 2005 beta 1 dvd

asp.net development server: port in use (but it's not!)

delay notification

compiling asp.net 2.0 projects from within vs.net

how do i build a website with asp.net v1.x using visual studio 2005?

64 bits

#region statements

error connecting to remote web site - professional edition

typed datasets and nullable columns...

i have a unit test i want to do performance profiling on.

files missing when publishing in visual studio 2005

problem web application projects and resources

html error validation will *not* disable at all...

copy web site visual studio 2005

visual web developer and visual studio 2005

how to dynamic load asp.net user controls in visual studio 2005

edit and continue in beta 2

asp.net development server (webdev.webserver2.exe) shuts down after debugging

regular expression

prevent vs from adding fixed dimensions to controls?

"unable to connect to visual studio's localhost web server"

cannot use controls

if i try to put breakpoint in javascript code for asp.net 2.0, it don't allow

simple feature to add summary and parameter description to method and class

unable to start debugging

share resouces across projects

problem with vs.net 2005 and windows server 2003 debugging ...

toolbox filling with text snippets

where is the web server controls ui editor?

http://localhost- why port #?

  Privacy | Contact Us
All Times Are GMT