HTTP Error 404 - File or directory not found.

Roby80_cr

Nuovo Utente
14 Mar 2007
2
0
0
qsto è l'errore ke mi da la pagina asp su server locale mentre su remoto mi dice ke c'è un disadattamento di tipo alla linea 38 il codice è il seguente:

<%@ Language=VBScript %>
<%
if Session("login") = "" then Response.Redirect "login.asp"

szAzione = Request("szAzione")
szTitolo = Request("szTitolo")
szOcchiello = Request("szOcchiello")
szTesto = Request("szTesto")
bPub = Request("bPub")
dtIns = Request("dtIns")
dtDay = Request("dtDay")
dtMonth = Request("dtMonth")
dtYear = Request("dtYear")
id_user = request ("id_user")

set conn = Server.CreateObject("ADODB.Connection")
conn.open Application("PANNELLO_ConnectionString")
Set Rs = Server.CreateObject("ADODB.RecordSet")

Select Case lcase( szAzione )

Case "nuova"

Conn.BeginTrans

sql = "SELECT TOP 1 * FROM NEWS"
Rs.Open sql , Conn , 1 , 3
Rs.AddNew
Rs("TITOLO") = szTitolo
Rs("OCCHIELLO") = szOcchiello
Rs("TESTO") = szTesto
if bPub = "on" then
Rs("PUBBLICATO") = True
else
Rs("PUBBLICATO") = False
end if
Rs("DATA_INS") = dtYear &"-"& dtMonth &"-"& dtDay
Rs("ID_USER")= id_user
Rs.Update
Rs.Close
Set Rs = Nothing

if Err.number = 0 then
Conn.CommitTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp"
else
Conn.RollbackTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp?szMsg=news non inserita! "& Err.Description
end if

Case "modifica"

Conn.BeginTrans

sql = "select * from news where id_news="& Request("idNews")
Rs.Open sql,Conn,1,3
Rs("TITOLO") = szTitolo
Rs("OCCHIELLO") = szOcchiello
Rs("TESTO") = szTesto
if bPub = "on" then
Rs("PUBBLICATO") = True
else
Rs("PUBBLICATO") = False
end if
Rs("DATA_INS") = dtYear &"-"& dtMonth &"-"& dtDay
Rs.Update
Rs.Close
Set Rs = Nothing

if Err.number = 0 then
Conn.CommitTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp"
else
Conn.RollbackTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp?szMsg=news non inserita! "& Err.Description
end if

Case "del"

Conn.Execute("DELETE FROM NEWS WHERE ID_NEWS="& Request("idNews") )
Set Rs = Nothing
Conn.Close
Set Conn = Nothing

Response.Redirect "default.asp"

End Select
%>
la linea 38 e qlla dove passo l'id_user cioè:
Rs("ID_USER")= id_user
qlc1 mi sa dire cosa sbaglio? xkè io proprio nn riesco a capirlo;
può essere ke mi da qsto errore xkè collegata alla tabella utenti proprio tramite l'id_user e qndi magari nn devo inserire qsto campo?:dipser:
 

Roby80_cr

Nuovo Utente
14 Mar 2007
2
0
0
Risolto nn passava l'id_user allora gliel'ho passato tramite la sessione metto di seguito il codice funzionante magari servirà a qlc1:

<%@ Language=VBScript %>
<%
if Session("login") = "" then Response.Redirect "login.asp"

szAzione = Request("szAzione")
szTitolo = Request("szTitolo")
szOcchiello = Request("szOcchiello")
szTesto = Request("szTesto")
bPub = Request("bPub")
dtIns = Request("dtIns")
dtDay = Request("dtDay")
dtMonth = Request("dtMonth")
dtYear = Request("dtYear")

set conn = Server.CreateObject("ADODB.Connection")
conn.open Application("PANNELLO_ConnectionString")
Set Rs = Server.CreateObject("ADODB.RecordSet")

Select Case lcase( szAzione )

Case "nuova"

Conn.BeginTrans

sql = "SELECT TOP 1 * FROM NEWS"
Rs.Open sql , Conn , 1 , 3
Rs.AddNew
Rs("TITOLO") = szTitolo
Rs("OCCHIELLO") = szOcchiello
Rs("TESTO") = szTesto
if bPub = "on" then
Rs("PUBBLICATO") = True
else
Rs("PUBBLICATO") = False
end if
Rs("DATA_INS") = dtYear &"-"& dtMonth &"-"& dtDay
Rs("ID_USER")= session("login")
Rs.Update
Rs.Close
Set Rs = Nothing

if Err.number = 0 then
Conn.CommitTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp"
else
Conn.RollbackTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp?szMsg=news non inserita! "& Err.Description
end if

Case "modifica"

Conn.BeginTrans

sql = "select * from news where id_news="& Request("idNews")
Rs.Open sql,Conn,1,3
Rs("TITOLO") = szTitolo
Rs("OCCHIELLO") = szOcchiello
Rs("TESTO") = szTesto
if bPub = "on" then
Rs("PUBBLICATO") = True
else
Rs("PUBBLICATO") = False
end if
Rs("DATA_INS") = dtYear &"-"& dtMonth &"-"& dtDay
Rs.Update
Rs.Close
Set Rs = Nothing

if Err.number = 0 then
Conn.CommitTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp"
else
Conn.RollbackTrans
Conn.Close
Set Conn = Nothing
Response.Redirect "default.asp?szMsg=news non inserita! "& Err.Description
end if

Case "del"

Conn.Execute("DELETE FROM NEWS WHERE ID_NEWS="& Request("idNews") )
Set Rs = Nothing
Conn.Close
Set Conn = Nothing

Response.Redirect "default.asp"

End Select
%>:byebye:
 
Discussioni simili
Autore Titolo Forum Risposte Data
M HTTP Status 500 - Internal Server Error. Java 0
Z HTTP ERROR 500 - La pagina non funziona - Joomla! Joomla 0
E HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this director Hosting 10
A HTTP Error 403.14 - Forbidden Hosting 4
MicheleWT HTTP Error 403.1 - Forbidden-era:[Discussione: mi ...] Classic ASP 2
F firefox problema http Linux e Software 0
A errore http://datatables.net/tn/7 PHP 4
L Richieste HTTP get post PHP 1
M [PHP] Modi per fare redirect 301 da http a https PHP 12
B [Java] Paginazione in risposta HTTP Java 0
P Migrazione sito da http a https per rispettare linee guida google SEO e Posizionamento 12
giorgiolovecchio [WordPress] Risorsa http invalida sicurezza sito WordPress 2
E [IIS] Reindirizzare richieste esterna http su https Web Server 0
MarcoGrazia Ricerca dell'esistenza del protocollo ( http | https ) in un url Javascript 2
W scambio banner sito per adulti http://massaggicinesi.tk/ Offerte e Richieste di scambio links 0
C Meta tag http-equiv="X-UA-Compatible" errore validatore w3c HTML e CSS 3
A conflitto http/https con google sites Javascript 1
Eruyomon http://studiosergipartners.it/ Presenta il tuo Sito 0
novello88 HTTP Basic Auth su Altervista PHP 0
D Centralizzare Http da più server via ssh Linux e Software 1
Z Esercizio HTTP su SSL Apache 1
M Come verificare accesso ad area http auth basic? PHP 7
V HTTP Long polling Ajax 7
E http request - POST o PUT? PHP 1
M Verifica HTTP o HTTPS PHP 1
C [RISOLTO]Numeri random al termine di un link http Javascript 27
B Scaricare file xml dopo autenticazione http PHP 1
D richieste http PHP 1
A Alternativa al <meta http-equiv="refresh" content="5;url=code.php" > HTML e CSS 5
L Tabella con rappresentazione corretta di tutti i campi e dei link HTTP . Ciclo for? PHP 5
M Volevo creare un servizio come http://www.destructingmessage.com/ PHP 2
D http://www.dedalo.byethost6.com/ Dedalo intelligenza condivisa Presenta il tuo Sito 0
M http://cryptoncomputer.altervista.org/webphp.php Presenta il tuo Sito 2
M Instantempo! http://instantempo.mattyfog.com Presenta il tuo Sito 0
C Professionista I.T. - Informatico free lance - http://www.malorgio.it Presenta il tuo Sito 0
D Problema DOPPIA richiesta HTTP Ajax 0
I 505 HTTP Version Not Supported PHP 5
T IIS attivo ma errore su http://localhost Classic ASP 1
catellostefano [URGENTISSIMO] si è verificato un errore in http server Apache 2
JellyBelly GET tramite file_get_contents a un url esterno http PHP 2
M Ajax http request refresh problem Ajax 0
N URGENTE "script src=http://www.bnradd.mobi/ngg.js" Database 0
S http://www.eventi-nightanday.com/ Presenta il tuo Sito 0
daviduccio IIS6 e PHP - Intestazioni HTTP - Web Server 5
G http://www.calcioealtro.netsons.org Presenta il tuo Sito 1
G http://wwe.nude.divas.forumcommunity.net/ Presenta il tuo Sito 0
virus.jack Http://virusjack.altervista.org Presenta il tuo Sito 0
V http://viviana.altervista.org Presenta il tuo Sito 3
M http://www.securitysite.helloweb.eu Presenta il tuo Sito 0
L http://www.securelook-mail.biz/ - Directory Free Presenta il tuo Sito 0

Discussioni simili