home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <%
- Set DBObj = Server.CreateObject("ADODB.Connection")
- DBObj.Open "NWindDB"
-
- SQLQuery = "SELECT CategoryID, CategoryName FROM Categories"
- Set RSCategories = DBObj.Execute(SQLQuery)
- %>
-
- <CENTER>
- <H1>List Of Product Categories</H1>
- </CENTER>
-
- <TABLE>
- <% Do While Not RSCategories.EOF %>
- <TR>
- <TD> <FONT FACE="Verdana" SIZE=2>
- <% CategoryName = RSCategories("CategoryName") %>
- <A HREF="/ProdCat.asp?CategoryID=<% =RSCategories("CategoryID") %>&CategoryName=<% =CategoryName %> "> <% = CategoryName %> </A>
- </FONT>
- </TD>
- </TR>
- <%
- RSCategories.MoveNext
- Loop
- %>
-
- </HTML>