473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem in Asp Coding

I am working in asp coding by using Dreamwavers
Following codes are opening new window of any product after click small thumbnail of each product. And i want to show Product Article No And Product Detail from Access database table field name (ProductArtNo) and (ProductDetail) with respected image in new window.

<!--#include file="connection.asp"-->
<%
Dim img,pno,artno
pno = Request.QueryString("pno")
img = Request.QueryString("img")
%>

<%
Dim rsList : set rsList = server.CreateObject("ADODB.RecordSet")

Dim pid,pid_array
pid = Request.QueryString("pid")
pid_array = split(pid,"-")
if not pid= "" then
ProductID = pid_array(0)
SubID = pid_array(1)
MainID = pid_array(2)
SecID = pid_array(3)
else
SecID = 10
MainID = 1
SubID = 1
ProductID = 0
end if

Dim topHeading,bgimg
if SecID<>0 then
rs.Open"Select * from tbl_Section where SecID="&SecID,cnn,3,2
if not rs.eof then
topHeading = rs("topHeading")
bgimg = rs("bgimg")
img_perpage = rs("PerPage")
end if
rs.close
end if
if secID <> 0 then
rs.Open"Select * from tbl_Section where SecID="&SecID,cnn,3,2
if not rs.eof then
secHead = "You are in: &nbsp;&nbsp;<strong>" & rs("SecDesc") & "</strong>"
end if
rs.close
end if

if MainID <> 0 then
rs.Open"Select * from tbl_Main where MainID="&MainID,cnn,3,2
if not rs.eof then
mainHead = "&nbsp;>&nbsp;<strong>" & rs("MainDescription")&"</strong>"
bgimg = rs("bgimg")
img_perpage = rs("PerPage")
end if
rs.close
end if

if SubID <> 0 then
rs.Open"Select * from tbl_Sub where SubID="&SubID,cnn,3,2
if not rs.eof then
subHead = "&nbsp;>&nbsp;<strong>" & rs("SubDescription")&"</strong>"
bgimg = rs("bgimg")
img_perpage = rs("PerPage")
end if
rs.close
end if
if img_perpage = 0 then
img_perpage = 1
end if
Dim Str
Str = secHead & mainHead & subHead
%>
<html>
<head>
<title>Art#: <%=pno%></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="no" http-equiv="Imagetoolbar">


</head>

<body bgcolor="#CCCC99">
<table width="50%" border="0" align="left" cellpadding="2" cellspacing="2">
<tr>
<td height="24" valign="top"> <table width="494" border="0" align="left" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="139" rowspan="2" align="center"><img src="<%=img%>"></td>
<td> <table width="316" border="1" align="left" cellpadding="0" cellspacing="0">
<tr>
<td class="Headings"><font color="#FFFFFF">Art NO</font></td>
<td colspan="2" class="Products"><font color="#FFFFFF"><%=rs("Artno")%></font></td>
</tr>
<tr>
<td class="Products"><font color="#FFFFFF">Detail</font></td>
<td class="Products">&nbsp; </td>
</tr>
<tr class="Products">
<td width="23%"><font color="#FFFFFF">Price</font></td>
<td width="77%">&nbsp; </td>
</tr>
<tr class="Products">
<td><font color="#FFFFFF">Color</font></td>
<td>&nbsp; </td>
</tr>
<tr class="Products">
<td><font color="#FFFFFF">Size</font></td>
<td>&nbsp; </td>
</tr>
<tr class="Products">
<td><font color="#FFFFFF">&nbsp;</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font color="#FFFFFF">&nbsp;</font></td>
<td>&nbsp;</td>
</tr>
</table> </td>
</tr>
<tr valign="top">
<td><p>&nbsp;</p>
<table width="90%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="images/sp1.jpg" width="160" height="100"></div></td>
<td><div align="center"><img src="images/sp2.jpg" width="170" height="100"></div></td>
</tr>
<tr>
<td><div align="center"><img src="images/spj3.jpg" width="82" height="100"></div></td>
<td><div align="center"></div></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
<tr valign="top">
<td align="center">Back View</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp; </p>
</body>
</html>


Follwoing error message is displayed

Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
/bossn/lareview.asp, line 88


Thanks in Advance
May 4 '06 #1
0 1393

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Berthold Höllmann | last post by:
I have a default coding header # -*- coding: iso-8859-15 -*- in my python files. I now have Problems with this settings. I swithched to Python 2.4.1 under Windows. When I import files with the...
2
by: manning_news | last post by:
Has anyone had a problem with Access 2003 not saving their coding? I've been using 2003 for a couple of months now and just this week noticed that some coding I'd done for a database was not there...
144
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this...
1
by: R Reyes | last post by:
Hello All, I'm always looking for ways to improve my code. Most of the time (whenever I'm working on a project) I write a bunch of functions. Then after the project is finished, I put all the...
4
by: Josh Golden | last post by:
i lead a small development team (based on some of my posts that might cause some people to choke themselves, but have no fear, i am NOT the lead developer, the people on my team are great - i'm...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
1
by: minerva | last post by:
Can anyone help me with a problem coding SQL in a COBOL program to handle nulls? I have coded SELECT COALESCE(MGRNO,'NONE ') FROM DEPT This works in SPUFI but gives a -206 SQLCODE in the bind...
0
by: pat | last post by:
CodeCheck Coding Standard's Support As a free service to our customers we offer support in developing "rule-files" for automating corporate coding standards. If you have a coding standard that...
8
by: =?ISO-8859-1?Q?Arnaud_Carr=E9?= | last post by:
Hi all, I guess you all know how difficult it is to choose a conding standard. And even more difficult it is to explain the choice to your dev team :-) I'm looking for an "official" c++ coding...
3
ganesanji
by: ganesanji | last post by:
hi all, I have written a php coding for uploading a file to a specific folder or location in server which is a Linux server. I think the coding for file uploaing is correct. But it does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.