14 messaggi dal 17 giugno 2021
Salve
chiedo aiuto per il suddetto tipo di errore

la riga richiesta e'
Response.Write VbTab & VbTab & "<td>" & rs.Fields ("ANNO") & "</td>" & VbCrLf

ma non so correggere l'errore...
Ringrazio anticipatamente tutti voi
ciao
mango_mi
307 messaggi dal 13 luglio 2005
Ciao mango_mi,
probabilmente l'oggetto "rs", che immagino sia un record set, non è stato ancora aperto o stato chiuso poco prima della riga che va in errore ...

Verifica o al più, se vuoi una mano, manda un po più di codice.

Ciao.

Umb
119 messaggi dal 19 ottobre 2005
Ma l'oggetto rs è stato inizializzato?
Il Fields Anno esiste?

Verifica queste due cose.
14 messaggi dal 17 giugno 2021
SUPERPIPPO2005 ha scritto:
Ciao mango_mi,
probabilmente l'oggetto "rs", che immagino sia un record set, non è stato ancora aperto o stato chiuso poco prima della riga che va in errore ...

Verifica o al più, se vuoi una mano, manda un po più di codice.

Ciao.

Umb

CIAO
ECCO:
<% @Language=VBScript EnableSessionState=False %>
<% Option explicit %>
<% Response.Buffer = True %>

<html>
<head>
<title></title>
<!-- #include file="Alboingdb.asp" -->


<style type="text/css">
.auto-style4 {
border-color: #0099FF;
border-width: 3px;
width: 47px;
font-weight: bold;
background-color: #FFCC00;
}
.auto-style8 {
border-color: #0099FF;
border-width: 3px;
width: 82px;
font-weight: bold;
background-color: #21E400;
}
.auto-style11 {
border-color: #0099FF;
border-width: 3px;
width: 89px;
font-weight: bold;
background-color: #FFFF00;
}
.auto-style14 {
text-align: center;
}
.auto-style16 {
border-color: #0099FF;
border-width: 3px;
font-weight: bold;
}
.auto-style17 {
border-color: #0099FF;
border-width: 3px;
width: 192px;
font-weight: bold;
background-color: #FFCC00;
}
</style>
</head>

<body style="border-width:0px;" topmargin="0" leftmargin="0">
<%

Dim col
col = 0
Function bgcol()
col = col + 1
if col = 1 then
bgcol = "#fffaf0"
else
bgcol = "#D0D0f0"
col = 0
end if
End Function

%>
<table align="center" border="1" cellpadding="1" >
<tr>
<td align="center"class="auto-style16" colspan="8" >




</tr>


<tr>
<td align="center" class="auto-style8">ANNO</td>
<td align="center" class="auto-style8">FOTO</td>
<td align="center" class="auto-style4">GIOCATORE</td>
<td align="center" class="auto-style11">PROV</td>

</tr>


<%





Response.Write VbTab & "<tr>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & "<class=auto-style4>" & rs.Fields("anno") & "</td>" & VbCrLf
RResponse.Write "<td> <img src=""/FotoGiocatori/" & rs.Fields ("FOTO") & """ width=""40px"" height=""40px"" style=""border: 1px #000000 solid"" /></a></td>"
Response.Write VbTab & VbTab & "<td>" & rs.Fields("GIOCATORE") & "</td>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & rs.Fields ("PROV") & "</td>" & VbCrLf
Response.Write VbTab & "</tr>" & VbCrLf


rs.moveNext

%>






</table>
</td>
</tr>
</table>

</body>
</html>
14 messaggi dal 17 giugno 2021
Salve
avevo inserito un file errato
quello giusto....e'
<% @Language=VBScript EnableSessionState=False %>
<% Option explicit %>
<% Response.Buffer = True %>

<html>
<head>
<title></title>
<!-- #include file="Alboingdb.asp" -->


<style type="text/css">
.auto-style4 {
border-color: #0099FF;
border-width: 3px;
width: 47px;
font-weight: bold;
background-color: #FFCC00;
}
.auto-style8 {
border-color: #0099FF;
border-width: 3px;
width: 82px;
font-weight: bold;
background-color: #21E400;
}
.auto-style11 {
border-color: #0099FF;
border-width: 3px;
width: 89px;
font-weight: bold;
background-color: #FFFF00;
}
.auto-style14 {
text-align: center;
}
.auto-style16 {
border-color: #0099FF;
border-width: 3px;
font-weight: bold;
}
.auto-style17 {
border-color: #0099FF;
border-width: 3px;
width: 192px;
font-weight: bold;
background-color: #FFCC00;
}
</style>
</head>

<body style="border-width:0px;" topmargin="0" leftmargin="0">
<%

Dim col
col = 0
Function bgcol()
col = col + 1
if col = 1 then
bgcol = "#fffaf0"
else
bgcol = "#D0D0f0"
col = 0
end if
End Function

%>
<table align="center" border="1" cellpadding="1" >
<tr>
<td align="center"class="auto-style16" colspan="8" >




</tr>


<tr>
<td align="center" class="auto-style8">ANNO</td>
<td align="center" class="auto-style8">FOTO</td>
<td align="center" class="auto-style4">GIOCATORE</td>
<td align="center" class="auto-style11">PROV</td>

</tr>


<%
rs.MoveFirst



While Not rs.EOF




Response.Write VbTab & "<tr>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & "<class=auto-style4>" & rs.Fields("ANNO") & "</td>" & VbCrLf
RResponse.Write "<td> <img src=""/FotoGiocatori/" & rs.Fields ("FOTO") & """ width=""40px"" height=""40px"" style=""border: 1px #000000 solid"" /></a></td>"
Response.Write VbTab & VbTab & "<td>" & rs.Fields("GIOCATORE") & "</td>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & rs.Fields ("PROV") & "</td>" & VbCrLf
Response.Write VbTab & "</tr>" & VbCrLf


rs.moveNext
Wend

closeConnection()

%>






</table>
</td>
</tr>
</table>

</body>
</html>
119 messaggi dal 19 ottobre 2005
Nel codice che hai postato non si vede dove viene istanziato RS.
Forse nel file Alboingdb.asp?
14 messaggi dal 17 giugno 2021
Salve

devo Scusarmi con chi mi sta dando una mano
ma due giorni fa ho risolto vedo le foto e tutta la tabella.
Grazie a tutti voi

già che ci sono...
ho un piccolo problema ancora ecco il codice della tabella
__________________________________________________________________________________________________________________________
Response.Write VbTab & "<tr>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & rs.Fields ("ANNO") & "</td>" & VbCrLf
Response.Write "<td><class=""auto-style12""> <img src=""/FotoGiocatori/" & rs.Fields ("FOTO") & """ width=""60px"" height=""60px"" style=""border: 1px #000000 solid"" /></td>"& VbCrLf
Response.Write VbTab & VbTab & "<td>" & "<class=auto-style8>"& rs.Fields ("VINCITORI") & "</td>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & "<class=auto-style11>"& rs.Fields ("PROV") & "</td>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & "<class=auto-style6>"& rs.Fields ("LOCALITA") & "</td>" & VbCrLf
Response.Write VbTab & VbTab & "<td>" & "<class=auto-style6>"& rs.Fields ("DENOMINAZIONE") & "</td>" & VbCrLf
Response.Write VbTab & "</tr>" & VbCrLf
__________________________________________________________________________________________________________
però quando sostituisco il codice dell'ultimo campo con


Response.Write VbTab & VbTab & "<td><a href=""" & rs.Fields ("LINK") & """>" & rs.Fields ("DENOMINAZIONE") & "</a></td>" & VbCrLf


IL CAMPO NON MI FA I LINK CON UN ALTRO CAMPO NON PRESENTE NEL SELECT.....RIMANE VUOTO.
FACCIO PRESENTE CHE LO STESSO CODICE FUNZIONA UN ALTRA TABELLE DEL GENERE


CIAO
mango_mi
119 messaggi dal 19 ottobre 2005
Non è che il campo link ti torna una stringa vuota?

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.