%@ Language=VBScript %>
| Burr | CounterSink | EndMill | Maintainance Tool Kit |
|---|---|---|---|
![]() |
| <% 'if product name is not null then disply the detail 'When selected from the droop down if Request.Form("prodname")<>"" then if Request.Form("prodname") = "Burr" then dispdetail(Request.Form("prodname")) else Session("ProductSelected")=Request.Form("prodname") asksubtype(Request.Form("prodname")) setgo(Request.Form("prodname")) end if end if 'if industrial burr hyperlink clicked if Request.QueryString("toolType")="AllBurr" then Session("ProductSelected")="Burr" Session("BurrType")="All" asksubtype("AllBurr") setgo("Burr") elseif Request.QueryString("toolType")="IndustrialBurr" then Session("ProductSelected")="Burr" Session("BurrType")="Industrial" asksubtype("IndustrialBurr") SetGo("Burr") elseif Request.QueryString("toolType")="SurgicalBurr" then Session("ProductSelected")="Burr" Session("BurrType")="Surgical" asksubtype("SurgicalBurr") setgo("Burr") elseif Request.QueryString("toolType")="JewelryBurr" then Session("ProductSelected")="Burr" Session("BurrType")="Jewelry" asksubtype("JewelryBurr") setgo("Burr") elseif Request.QueryString("toolType")="EndMill" then Session("ProductSelected")="EndMill" asksubtype("EndMill") setgo("EndMill") elseif Request.QueryString("toolType")="CounterSink" then Session("ProductSelected")="CounterSink" asksubtype("CounterSink") setgo("CounterSink") elseif Request.QueryString("toolType")="Drill" then Session("ProductSelected")="Drill" asksubtype("Drill") setgo("Drill") end if %> <% '****************************************************************************************** ' ALL FUNCTIONS '****************************************************************************************** '****************************************************************************************** ' To Display Sub Catagories if present and then To show the Criteria for search '****************************************************************************************** function dispdetail(pname) dim cn1 dim rs11 set cn1=server.CreateObject("ADODB.Connection") '**************** 'the below line was commented cn1.ConnectionString="Provider=Microsoft.Jet.OLEDB.3.51;Password=;Persist Security Info=True;User ID=;Data Source=" & _ Server.MapPath("..\..\db\Shiballoy.mdb") '**************** 'the below line was not commented and remove the above lines cn1.ConnectionString=Application("ConnectionString") cn1.Open 'if tool selected is burr then if pname="Burr" then '************call setburrtype asp file which will redirect to this page after burr sub type set set rs11=server.CreateObject("ADODB.Recordset") rs11.Open "select distinct category from Burr" ,cn1 'Response.Write " |