Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2005, 09:13 AM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Class templates

Hi gents (Just lost whole post! Im such an idiot this one might not be as detailed...)

Basically I am writing a vb.net app that will build my code classes from the database structure.

I am trying to find the best way to keep a class template. ie. the base the class will be built from.

So at the moment. They are txt files with tags in them. That I would replace with code. eg. "<attcommdell/>" might be replaced with "attr_01, attr_02, attr_03"

My Questions.

1) What is the best format to store the templates. ie. txt files or maybe using something like XSLT? (Which I have tried and found irritating limitations?)

2) What would be the best way to store a set of tags that can be used and a function to call to replace them with. ie. something like an enum (I know it wont work but something similar. structured...)

3) What would be the best way to pick up these tags in the files to do something with them. ie. Would the replace function be good enough or is there a better way?

Thanks for the input. I just want to do this in the best way possible.

ciao
:D
 
Old May 10th, 2005, 08:32 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

Hi, Shenku

Can you elaborate little more. I have done a similar work in VB 6 itself. In VB.Net it is more structured now. But i can't get your actual thoughts.

cheers



Anubhav Kumar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Property access from Class within Partial Class zoltac007 C# 2005 0 December 1st, 2006 01:01 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM
Class templates VS.Net 2002 vs. VS.NET 2003 boksi General .NET 4 May 4th, 2005 11:58 AM
How to include c# class and vb class in the .vbprj umeshayk VS.NET 2002/2003 2 January 9th, 2004 12:08 AM
Class Templates jlick VB.NET 2002/2003 Basics 1 October 9th, 2003 11:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.