Drop Down menu! (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


sssngt83 -> Drop Down menu! (5/9/2008 5:58:05)

Any 1 can teach me how do unlimited drop down menu??
Like :

+category
+subcategory 1
>> product 1
>> product 2
.
.
>> product n
+subcategory 2
.
.
+subcategory n







DesiMcK -> RE: Drop Down menu! (5/9/2008 6:10:08)

Are you products listed in a database table? If so are you using Frontpage DRW or pure asp?

You can loop through all the products in the database and use this to populate your drop down.

Desi




sssngt83 -> RE: Drop Down menu! (5/12/2008 0:24:01)

I know how loop through all the products in the database but don't know how to do in drop-down form. Need use javascript combine with asp ?? can show me an example ??




DesiMcK -> RE: Drop Down menu! (5/12/2008 8:46:23)

If you are using the DRW it would be spomething like this:

<select NAME="DROPDOWN1" SIZE="1">

<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<option value = "<%=FP_FieldHTML(fp_rs,"myField")%>"><%=FP_FieldHTML(fp_rs,"myField")%></option>
<!--#include file="../_fpclass/fpdbrgn2.inc"-->

</select>




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.1089478