Click here to Skip to main content
15,925,113 members
Home / Discussions / Web Development
   

Web Development

 
GeneralPlatform Confusion Pin
michael watt2-Dec-03 3:09
michael watt2-Dec-03 3:09 
GeneralRe: Platform Confusion Pin
Not Active2-Dec-03 4:14
mentorNot Active2-Dec-03 4:14 
GeneralRe: Platform Confusion Pin
michael watt2-Dec-03 8:44
michael watt2-Dec-03 8:44 
GeneralRe: dhtml/javascript/iframe/link inline html Pin
ZoogieZork2-Dec-03 2:17
ZoogieZork2-Dec-03 2:17 
GeneralRe: dhtml/javascript/iframe/link inline html Pin
Maximilien2-Dec-03 2:30
Maximilien2-Dec-03 2:30 
GeneralASP Session again Pin
BlackRider1-Dec-03 22:05
BlackRider1-Dec-03 22:05 
GeneralRe: ASP Session again Pin
Paul Watson1-Dec-03 22:47
sitebuilderPaul Watson1-Dec-03 22:47 
GeneralRe: ASP Session again Pin
BlackRider2-Dec-03 1:45
BlackRider2-Dec-03 1:45 
Don't mind the fact that I'm not closing the recordset and the connection. In real life I do that ... Smile | :)
The problem is that I want the test1.asp script to display the content of the Session("UserName") but I am not succesful because I get an error saying that :
Error Type:
ADODB.Field (0x80020009)
Object is no longer valid.
/meteo/test1.asp, line 3

Here is the code:
test.asp
<%@ language="Javascript" %>
<%
var Connection,Recordset;
Connection = Server.CreateObject("ADODB.Connection");
Recordset = Server.CreateObject("ADODB.Recordset");
Connection.Open("Clienti");
var strSQLQuery = "SELECT * FROM clienti WHERE nume_utilizator = \'" + "radio" +"\'";
Recordset=Connection.Execute(strSQLQuery);
Session("UserName") = Recordset.Fields("nume_utilizator");
Recordset.Close();
Connection.Close();
Response.Redirect("test1.asp");
%>

and test1.asp

<%@ language="Javascript" %>
<%
Response.Write(Session("UserName"));
%>
GeneralRe: ASP Session again Pin
Paul Watson2-Dec-03 1:52
sitebuilderPaul Watson2-Dec-03 1:52 
GeneralRe: ASP Session again Pin
BlackRider2-Dec-03 23:00
BlackRider2-Dec-03 23:00 
GeneralRe: ASP Session again Pin
Populate1233-Dec-03 21:39
Populate1233-Dec-03 21:39 
GeneralRegionInfo and CultureInfo (CurrentCulture/CurrentUICulture) Pin
CillyMe1-Dec-03 16:28
CillyMe1-Dec-03 16:28 
GeneralASP Sessions Pin
User 127821-Dec-03 14:00
User 127821-Dec-03 14:00 
GeneralRe: ASP Sessions Pin
theJazzyBrain1-Dec-03 21:57
theJazzyBrain1-Dec-03 21:57 
GeneralRe: ASP Sessions Pin
User 127822-Dec-03 10:45
User 127822-Dec-03 10:45 
GeneralRe: ASP Sessions Pin
Paul Watson1-Dec-03 23:02
sitebuilderPaul Watson1-Dec-03 23:02 
GeneralRe: ASP Sessions Pin
User 127822-Dec-03 10:44
User 127822-Dec-03 10:44 
GeneralSOAP Question Pin
ProffK1-Dec-03 2:20
ProffK1-Dec-03 2:20 
GeneralRe: SOAP Question Pin
Paul Watson1-Dec-03 23:06
sitebuilderPaul Watson1-Dec-03 23:06 
GeneralRe: SOAP Question Pin
ProffK1-Dec-03 23:18
ProffK1-Dec-03 23:18 
Generaldhtml/javascript/iframe/link inline html Pin
Maximilien30-Nov-03 12:52
Maximilien30-Nov-03 12:52 
GeneralRe: dhtml/javascript/iframe/link inline html Pin
theJazzyBrain1-Dec-03 22:00
theJazzyBrain1-Dec-03 22:00 
QuestionHow do I configure SSL? Pin
CillyMe30-Nov-03 6:24
CillyMe30-Nov-03 6:24 
GeneralChanging orientation of Page of printer to Landscape using ASP.... Pin
Pranoti28-Nov-03 7:26
Pranoti28-Nov-03 7:26 
GeneralRe: Changing orientation of Page of printer to Landscape using ASP.... Pin
Heath Stewart28-Nov-03 8:20
protectorHeath Stewart28-Nov-03 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.