Forums

ASP

This topic is locked

Bullet list with database - newbie

Posted 01 Dec 2001 00:45:22
1
has voted
01 Dec 2001 00:45:22 Tim Haskins posted:
<font face='Arial'></font id='Arial'><font size=2></font id=size2>
Hey new to ultradev and access, but I'm wondering the best way to use a list with bullets in Ultradev??

In my Access database I made a seperate column named detail01, detail 02, detail 03...and then linked that up to a "list" on one of my asp pages in UD. That worked, but is that the best way to set it up??
Couldnt I put all the details together in one column in Access and then break it up in a list somehow??
Or are there any other better ideas? Please Help. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> Thanks guys

Tim

Replies

Replied 01 Dec 2001 12:14:41
01 Dec 2001 12:14:41 Owen Eastwick replied:
First, are you the only one that will be entering information to the database?

If so, you could simply set up a multi line text box in a form on a page in which to enter the details then enter the HTML directly into the textbox like:

<pre id=code><font face=courier size=2 id=code>&lt;li&gt;detail1&lt;/li&gt;&lt;li&gt;detail2&lt;/li&gt;&lt;li&gt;detail3&lt;/li&gt;&lt;li&gt;detail4&lt;/li&gt;</font id=code></pre id=code>

Or you could enter it something like this:

(detail1)(detail2)(detail3) etc.

Then replace the brackets with the HTML code:

&lt;%
varList = (YourRecordsetName.Fields.Item("YourFieldName".Value)
varList = Replace(varList, Chr(40), "&lt;Li&gt;"
varList = Replace(varList, Chr(41), "&lt;/Li&gt;"
%&gt;

Then display the list:

&lt;% = varList %&gt;

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 04 Dec 2001 23:56:35
04 Dec 2001 23:56:35 Tim Haskins replied:
I would be the only one entering information into the database, and I would be doing it though and ASP administration area in the site.

I dont understand this part though:
&lt;%
varList = (YourRecordsetName.Fields.Item("YourFieldName".Value)
varList = Replace(varList, Chr(40), "&lt;Li&gt;"
varList = Replace(varList, Chr(41), "&lt;/Li&gt;"
%&gt;

Then display the list:

&lt;% = varList %&gt;

Could you explain it please? Thanks so much Owen <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Reply to this topic