Ask a Question related to ASP Database, Design and Development.
-
George Fernett #1
Abnormal End Of File
Hi all,
I have the following in an ASP script:
(note: "ccode" is a checkbox collection from a previous ASP script)
<%
dim choices, oCmd, oRS
set oConn = GetConnection()
choices = Request.Form("ccode")
choices = Split(choices, ",")
For Each member in choices
oCmd = "SELECT * FROM jsppf WHERE jspcde = '" & member & "'"
Set oRS = oConn.Execute(oCmd)
While Not oRS.eof 'EOF IS ON AFTER FIRST NAME
Response.Write("<span class=""head"">Course Code: " &
oRs.fields("jspcde") & "</span>")
Response.Write("<span class=""subhead""> " &
oRs.fields("jspdsc") & "</span>")
oRS.movenext
Wend
Next
%>
"choices" contains NewYork,Trenton
If "choices" contains 1 name, this works fine
If "choices" contains more than 1 name, the first name works fine, but the
next one returns "oRS" as EndOfFile.
I am guessing that EOF is still on from the previous name, so how do I
"RESET" the EOF flag?
Any and all help is appreciated.
Happy Holidays!
George
George Fernett Guest
-
Site Panel - Abnormal Expand/Collapse
I've always had the same folder problem and the Dreamweaver 4 format makes no difference. It is not a trouble with panels, it is a problem with... -
#39852 [NEW]: static variable shows abnormal performence
From: eingmarra at hotmail dot com Operating system: windowsxp sp2 PHP version: 5.2.0 PHP Bug Type: Class/Object related Bug... -
problem in binding xml file data to datagrid xml file isgenerated through JSP file
problem it that i am creating xml file using JSP file and i want to bind DataGrid with xml file data that is created using JSP but it will not Bind... -
Guru's Challenge: How to place multiple instances of a control in a single page in an abnormal situation
I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a... -
abnormal program termination with dynamic data, but not with fixed data
hi everyone. I am stumped! I have code that is part of a simple persistent object manager. The system takes an object, builds an update... -
McKirahan #2
Re: Abnormal End Of File
"George Fernett" <georgef@njcf.org> wrote in message
news:upb9LcYyDHA.1272@TK2MSFTNGP12.phx.gbl..."'"> Hi all,
>
> I have the following in an ASP script:
>
> (note: "ccode" is a checkbox collection from a previous ASP script)
>
>
>
> <%
> dim choices, oCmd, oRS
> set oConn = GetConnection()
> choices = Request.Form("ccode")
> choices = Split(choices, ",")
>
> For Each member in choices
> oCmd = "SELECT * FROM jsppf WHERE jspcde = '" & member &Insert "oRS.movefirst" after "Wend"> Set oRS = oConn.Execute(oCmd)
> While Not oRS.eof 'EOF IS ON AFTER FIRST NAME
> Response.Write("<span class=""head"">Course Code: " &
> oRs.fields("jspcde") & "</span>")
> Response.Write("<span class=""subhead""> " &
> oRs.fields("jspdsc") & "</span>")
> oRS.movenext
> Wend
> Next
> %>
>
> "choices" contains NewYork,Trenton
>
> If "choices" contains 1 name, this works fine
> If "choices" contains more than 1 name, the first name works fine, but the
> next one returns "oRS" as EndOfFile.
>
> I am guessing that EOF is still on from the previous name, so how do I
> "RESET" the EOF flag?
>
> Any and all help is appreciated.
>
> Happy Holidays!
>
> George
McKirahan Guest
-
Mark Schupp #3
Re: Abnormal End Of File
> Wend
oRS.close> Next
--
Mark Schupp
Head of Development
Integrity eLearning
[url]www.ielearning.com[/url]
"George Fernett" <georgef@njcf.org> wrote in message
news:upb9LcYyDHA.1272@TK2MSFTNGP12.phx.gbl..."'"> Hi all,
>
> I have the following in an ASP script:
>
> (note: "ccode" is a checkbox collection from a previous ASP script)
>
>
>
> <%
> dim choices, oCmd, oRS
> set oConn = GetConnection()
> choices = Request.Form("ccode")
> choices = Split(choices, ",")
>
> For Each member in choices
> oCmd = "SELECT * FROM jsppf WHERE jspcde = '" & member &> Set oRS = oConn.Execute(oCmd)
> While Not oRS.eof 'EOF IS ON AFTER FIRST NAME
> Response.Write("<span class=""head"">Course Code: " &
> oRs.fields("jspcde") & "</span>")
> Response.Write("<span class=""subhead""> " &
> oRs.fields("jspdsc") & "</span>")
> oRS.movenext
> Wend
> Next
> %>
>
> "choices" contains NewYork,Trenton
>
> If "choices" contains 1 name, this works fine
> If "choices" contains more than 1 name, the first name works fine, but the
> next one returns "oRS" as EndOfFile.
>
> I am guessing that EOF is still on from the previous name, so how do I
> "RESET" the EOF flag?
>
> Any and all help is appreciated.
>
> Happy Holidays!
>
> George
>
>
Mark Schupp Guest
-
Xenopheonix #4
Abnormal End Of File
looks like a bunch of japanese to me haha ha ha hahaa am i
right or am i right?previous ASP script)>-----Original Message-----
>Hi all,
>
>I have the following in an ASP script:
>
> (note: "ccode" is a checkbox collection from a= '" & member & "'">
>
>
><%
> dim choices, oCmd, oRS
> set oConn = GetConnection()
> choices = Request.Form("ccode")
> choices = Split(choices, ",")
>
> For Each member in choices
> oCmd = "SELECT * FROM jsppf WHERE jspcdeFIRST NAME> Set oRS = oConn.Execute(oCmd)
> While Not oRS.eof 'EOF IS ON AFTERclass=""head"">Course Code: " &> Response.Write("<spanclass=""subhead""> " &>oRs.fields("jspcde") & "</span>")
> Response.Write("<spanworks fine, but the>oRs.fields("jspdsc") & "</span>")
> oRS.movenext
> Wend
> Next
>%>
>
>"choices" contains NewYork,Trenton
>
>If "choices" contains 1 name, this works fine
>If "choices" contains more than 1 name, the first namename, so how do I>next one returns "oRS" as EndOfFile.
>
>I am guessing that EOF is still on from the previous>"RESET" the EOF flag?
>
>Any and all help is appreciated.
>
>Happy Holidays!
>
>George
>
>
>.
>Xenopheonix Guest



Reply With Quote

