The reason I need to loop through a recordset is to get the directory path of certain images that are stored in fields in the table. So each time I loop through the recordset I need to save the value retrieved into a seperate variable. Then pass these variables to a seperate function to set my source values of 3 different images that are retrieved from the recordset. I hope this makes sense.
I have to add again that I appreciate all of your help
DSN = Data Source Name. Are you familiar with them? You use the OLE32 Control Panel Applet to create them. They hold the connection information to your data source.
> get the directory path of certain images that are stored in fields in the table
You should be able to generate a SQL statement that will retrieve only the rows contianing the images of interest. This should keep you from having to 'search' through the returned recordset.
The in your while loop just replace:
Response.Write( rs("Title" + ": " + rs("Name" + "<br>"
with whatever HTML you need, OR even use inline ASP replacement style code, i.e.:
I cant use ASP replacement code within javascript tags
ie
<script language="JavaScript1.2">
// slide show
function reapply()
{
setTimeout("slideit()",2000)
return true
}
window.onerror=reapply
</script>
<script language="JavaScript1.1">
<!--
var image1=new Image()
image1.src="<%../MemberImages/ProjPics/13-5-1.jpg %>"
var image2=new Image()
image2.src="../MemberImages/ProjPics/13-5-2.jpg"
var image3=new Image()
image3.src="../MemberImages/ProjPics/13-5-3.jpg"
//-->
</script>
the asp style is not recognized. Do you have an email address I could get from you or a chat program that u run. So I can explain to you better what I am trying to do.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.