I am trying to pass a datatable from a page to another
page in a different frame. The user would see the results
of a query in the first frame then could navigate through
the second frame to a page that uses the query data for
another purpose.
I kept getting null-object-reference errors when I tried
to bind the data to a control in the second frame. In an
attempt to trace the problem I set up a little test of
session variables to see if I had the basics right.
Perhaps I shouldn't assume it works just like ASP. In the
page in frame1, I have (in Page_Load) this line:
Session("test1" ) = "testing testing"
In the page in frame2 I have (in Page_Load):
Try
FileOpen(1, "C:/Inetpub/wwwroot/mysite/debugout.txt",
OpenMode.Output , OpenAccess.Writ e, OpenShare.Defau lt)
WriteLine(1, "sessiontes t:", Session("test1" ))
Catch err As Exception
WriteLine(1, err.ToString())
Finally
FileClose(1)
End Try
The result is a blank page in frame2, and debugout.txt has
one line:
"sessiontest:"# ERROR 448#
I can't find a reference to this error anywhere. Am I
using session variables correctly? Do I have to create a
global.asax file to initialise session variables? I have
no clue what is happening here. 2 1619
Try changing this line
WriteLine(1, "sessiontes t:", Session("test1" ))
to
WriteLine(1, "sessiontes t:", CType(Session(" test1"),string)
Jerry -----Original Message----- I am trying to pass a datatable from a page to another page in a different frame. The user would see the results of a query in the first frame then could navigate through the second frame to a page that uses the query data for another purpose. I kept getting null-object-reference errors when I tried to bind the data to a control in the second frame. In an attempt to trace the problem I set up a little test of session variables to see if I had the basics right. Perhaps I shouldn't assume it works just like ASP. In the page in frame1, I have (in Page_Load) this line:
Session("test1" ) = "testing testing"
In the page in frame2 I have (in Page_Load):
Try FileOpen(1, "C:/Inetpub/wwwroot/mysite/debugout.txt", OpenMode.Outpu t, OpenAccess.Writ e, OpenShare.Defau lt) WriteLine(1, "sessiontes t:", Session("test1" )) Catch err As Exception WriteLine(1, err.ToString()) Finally FileClose(1) End Try
The result is a blank page in frame2, and debugout.txt
hasone line: "sessiontest:"# ERROR 448#
I can't find a reference to this error anywhere. Am I using session variables correctly? Do I have to create a global.asax file to initialise session variables? I have no clue what is happening here. .
Good suggestion, but the result was exactly the same. -----Original Message----- Try changing this line WriteLine(1, "sessiontes t:", Session("test1" )) to WriteLine(1, "sessiontes t:", CType(Session
("test1"),strin g) Jerry
-----Original Message----- I am trying to pass a datatable from a page to another page in a different frame. The user would see the
resultsof a query in the first frame then could navigate
throughthe second frame to a page that uses the query data for another purpose. I kept getting null-object-reference errors when I tried to bind the data to a control in the second frame. In an attempt to trace the problem I set up a little test of session variables to see if I had the basics right. Perhaps I shouldn't assume it works just like ASP. In
thepage in frame1, I have (in Page_Load) this line:
Session("test1" ) = "testing testing"
In the page in frame2 I have (in Page_Load):
Try FileOpen
(1, "C:/Inetpub/wwwroot/mysite/debugout.txt",OpenMode.Outp ut, OpenAccess.Writ e, OpenShare.Defau lt) WriteLine(1, "sessiontes t:", Session("test1" )) Catch err As Exception WriteLine(1, err.ToString()) Finally FileClose(1) End Try
The result is a blank page in frame2, and debugout.txt hasone line: "sessiontest:"# ERROR 448#
I can't find a reference to this error anywhere. Am I using session variables correctly? Do I have to create a global.asax file to initialise session variables? I have no clue what is happening here. . . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wayno |
last post by:
My php logs are coming up empty. I have done all I can think of, and
all that made sense to me. Can someone take a look at my php.ini
please and tell me what you think may be the problem.
I double-checked the path to my error log. It is in
/var/www/logs/php_error_log
Thanks. :)
-Wayne Stevenson
|
by: Morten Gulbrandsen |
last post by:
mysql> USE company;
Database changed
mysql>
mysql> DROP TABLE IF EXISTS EMPLOYEE;
--------------
DROP TABLE IF EXISTS EMPLOYEE
--------------
Query OK, 0 rows affected (0.00 sec)
|
by: deko |
last post by:
I use this convention frequently:
Exit_Here:
Exit Sub
HandleErr:
Select Case Err.Number
Case 3163
Resume Next
Case 3376
Resume Next
|
by: Peter Frost |
last post by:
Please help
I don't know if this is possible but what I would really like to do is
to use On Error Goto to capture the code that is being executed when
an error occurs.
Any help would be much appreciated.
Thanks in advance
|
by: Boris |
last post by:
All,
Please help me with following error. I am using classic ASP to connect
to MS Access DB to create a table dynamically. Following is the table
definition. I get the error when I execute the following SQL.
CREATE TABLE ( NULL ,
NULL , NULL , NULL
, NULL , NULL ,
NULL , NULL ,
| |
by: Eugene Anthony |
last post by:
One problem with the code bellow is after this code
conn.qDupUser p1,rs
I added:
set rs = nothing
to test the error handling capability.
|
by: Lisa |
last post by:
In translating the formula for calculating lottery odds for various
conditions into a Visual Basic Program, I have apparently missed something
in that I get errors in the part of the calculation where the number of ways
of failure (pFal) is calculated
Both errors happen in the code section
x1 = Draw - MatchesReq
x2 = Field - Selections
For Counter = 1 To (Draw - MatchesReq - 1)
x1 = x1 * (Draw - MatchesReq - Counter)
|
by: Bruce |
last post by:
Hello,
I know this must be something simple I'm overlooking but I can't get
err.raise inside a class to return anything but 440 - automation
error. For example, if I create the following test class:
Option Compare Database
Option Explicit
Private Sub Class_Initialize()
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge.
I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge.
I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |