Home | Advertising Info61 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, December 13, 2017  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Temlates in ASP & SQL
From: Kush Desai
Date: 12/23/2000 5:33:10 AM


Hi Friends,
I have a problem that i havnt been able to find a good solution to and i thought that i would ask my peers.

I am trying to use templates to achieve a clear seperation of presentation layout & data. To achieve this, i have read all available articles on all ASP sites talking bout using templates. They typically use the Replace() to replace the markers with the provided content.

But i have another problem
say i have a table like

here [1] and [2] are the markers.
Typically each marker would be replaced by 1 value.i.e. i can do
for i = 1 to 2
Replace("[} & i & "]",arr[i])

where arr is an array i make.

suppose i run a query that returns a dataset with these two columns and the record count is 10. In this case a single Replace() doesnt do the job.
I would like to know if there is another way that i can have a template with the placeholders inside table which get replaced by the dataset.

All comments welcome



   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2017 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com