csiwa28
Programmer
- Apr 12, 2001
- 177
I just started developing in ASP and I have some questions that I can't find answers to online and I am looking for help.
I have a database with a table - Product
Name Type
Product A Type A
Product A Type B
Product B Type A
My first asp page will read from the database and list all the products as hyperlinks. Then when the user clicks on a hyperlink, then a second page will display the different types of that product.
My question is how do I pass a value from a hyperlink? Here's what I have so far.
Dim objRec
Set objRec = Server.CreateObject ("ADODB.Recordset"objRec.Open "Product",strConnect,adOpenStatic,adLockReadOnly,adCmdTable
'loop through the products table
Response.Write "Select Product Type:<BR>"
While Not objRec.EOF
Response.Write "<a href= type.asp>" & objRec("Name" & "</a>" & "<BR>"
objRec.MoveNext
Wend
I have a database with a table - Product
Name Type
Product A Type A
Product A Type B
Product B Type A
My first asp page will read from the database and list all the products as hyperlinks. Then when the user clicks on a hyperlink, then a second page will display the different types of that product.
My question is how do I pass a value from a hyperlink? Here's what I have so far.
Dim objRec
Set objRec = Server.CreateObject ("ADODB.Recordset"objRec.Open "Product",strConnect,adOpenStatic,adLockReadOnly,adCmdTable
'loop through the products table
Response.Write "Select Product Type:<BR>"
While Not objRec.EOF
Response.Write "<a href= type.asp>" & objRec("Name" & "</a>" & "<BR>"
objRec.MoveNext
Wend