|
|
|
|
|
| | |
|
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
ASPs and Arrays |
From: |
Bryan |
Date: |
10/26/1999 11:48:34 AM |
IP: |
195.40.203.242 |
I have written the following peice of code. when i run the application if I have more than one value in my array AJOBS, it prints position, location etc... of every index in the array to the page. I want to incorporate a button, that when clicked will iterate throughthe array, only displaying the info associated for that ILOOP. Can anyone give me ahand?
%Response.Buffer = true%>
<% strjobs = Request.QueryString("vjobs")%>
<% set Job = Server.CreateObject("INTRODLL.CJobs")%>
<% dim ajobs%>
<% ajobs = split(strjobs, ",")%>
<%If ISempty(ajobs) = true then %> <font size="2"><font face="Arial, Helvetica, sans-serif" color="#000099">Sorry,
no records in the database.</font></b></font>
<%else%>
<% dim iLoop%>
<%for iLoop =lbound(ajobs) to Ubound(ajobs)%>
<%ajobs(iLoop) = Trim(ajobs(iLoop))%>
<%Job.JobDetails(ajobs(iLoop))%>
<form name="frmdetails" action="NextJob.asp" method="Post">
Position: <input name="txtposition" type="TEXT" size="25" value="<% response.write Job.positions %>">
<br>
Category: <input name="txtcategory" type="TEXT" size="25" value="<% response.write Job.category %>">
<br>
Location: <input name="txtlocation" type="TEXT" size="20" value="<% response.write Job.location %>">
<br>
Skills/Required: <input name="txtskills" type="TEXT" size="25" value="<% response.write Job.SkillsRequired %>">
<br>
S |
|
|

|
|
|
|
|
|
|
|
|
|