Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 August 5th, 2004, 10:53 PM
Authorized User
 
Join Date: Mar 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default Database Collections

My database is diagramed below, and I have 2 pages that use the same database. A events page, and the index page. On the index page i do not want the useres to see the fancy colors or anything like that..... But on the events page I do. This is how i have it set up right now:
---------------------------------------------------------------------
Database:
|EventID| Time | GameDesc |
   11 5:30 Testing
---------------------------------------------------------------------
So on the index page i do not want to display the color, is there anyway of doing that without redoing all the stuff i already have done?

 
Old August 6th, 2004, 02:40 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


hi,

dim st,str1,count1,count2
st="Testing"
count1=instr(st,">")
count2=instr(count1,st,"<")
str1=mid(st,count1+1,count2-(count1+1))


str1 is the text with out tags. I think this is wat you need.

 
Old August 7th, 2004, 02:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

In such cases, it is better to store values into database without font and other formatting tags, and have that added in your ASP files wherever required.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
collections help bennyt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 July 26th, 2008 01:30 AM
Collections in C#? shenku C# 1 August 17th, 2005 06:16 AM
Collections question GregV VB.NET 2002/2003 Basics 0 August 6th, 2003 12:24 PM





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