Filtering Option:
<% set rs=Server.CreateObject("ADODB.RECORDSET") sql=" select * from Category" rs.Open sql,sdsn,adOpenKeyset,adLockReadOnly,AdCmdText %>          

<% set rs0=Server.CreateObject("ADODB.RECORDSET") sql=" select * from Plants where CategoryID <> 0" if Request("CategoryID") <> "-1" and Request("CategoryID") <> "" then sql = sql & " and CategoryID=" & Request("CategoryID") if request("firstchar") <> "" and request("firstchar") <> "-1" then sql = sql & " and PlantName like'" & Request("firstchar") & "%'" rs0.Open sql,sdsn,adOpenKeyset,adLockReadOnly,AdCmdText if not rs0.EOF then %> <% do while not rs0.EOF %> <% rs0.MoveNext() loop %> <% else %> There Is No Records Found <% End if %>
Plant Name      Plant Category
     
"><%=(rs0("PlantName"))%>      "><%=(rs0("Category"))%>