salve,
ho un errore server che non riesco a comprendere.
Lo script che uso è quasi uguale ad un altro che ho usato in un'altra pagina che, invece, funziona correttamente (il "quasi" è solo per un uso differente delle variabili)
L'errore che ricevo è questo:
codice:
Response object error 'ASP 0251 : 80004005'
Response Buffer Limit Exceeded
/gestione/viewgradpata.asp, line 0
Execution of the ASP page caused the Response Buffer to exceed its configured limit.
e lo script è questo:
codice:
area = Request.Querystring("area")
personale = Request.Querystring("personale")
grad = Request.Querystring("graduatoria")
datapubb = Request.Querystring("data")
Dim RS
IF personale = "AA" THEN
visu = "ASSISTENTI AMMINISTRATIVI"
ELSEIF personale = "AT" THEN
visu = "ASSISTENTI TECNICI"
ELSEIF personale = "CS" THEN
visu = "COLLABORATORI SCOLASTICI"
END IF
sRedirect = Request.ServerVariables("HTTP_REFERER")
'... qui piazzo il codice html per visualizzare la pagina...
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& server.MapPath("/mdb-database/gradprovata.mdb")
Set RS = Server.CreateObject("ADODB.Recordset")
sSQL = "SELECT * FROM graduatoria WHERE prof='" & personale & "'"
IF personale = "AT" THEN
sSQL = sSQL & " AND area='" & area & "'"
END IF
sSQL = sSQL & " AND datapubb='" & datapubb &"' AND tipograd='" & grad & "' ORDER by posgrad"
RS.Open sSQL, oConn, 1, 1
IF NOT RS.EOF THEN
RS.Movefirst
DO UNTIL RS.EOF
area = RS(2)
posto = RS(4)
cognome = RS(5)
nome = RS(6)
ggnasc = RS(7)
mmnasc = RS(8)
aanasc = RS(9)
provnasc = RS(10)
identif = RS(11)
amm = RS(13)
serv = RS(14)
tit = RS(15)
tot = RS(16)
pat = RS(19)
datanasc = ggnasc & "/" & mmnasc & "/" & aanasc
'... e qui piazzo le variabili nella tabella a video e poi:
RS.Movenext
LOOP
ELSE
'... mostra messaggio di mancanza di dati da visualizzare
END IF
Dov'è che sbaglio ??