473,836 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session("var")= rs.getRows()

hi
session("myVar" ) = rs.getRows( )
don't work when number of records
is greater than 10

does anybody know WHY ???

is it a Session object limitation ???

thanks
--
atte, Hernán
Nov 2 '05 #1
9 3665
bajopalabra wrote:
hi
session("myVar" ) = rs.getRows( )
don't work when number of records
is greater than 10

does anybody know WHY ???

is it a Session object limitation ???

What does "don't work" mean? Error message? Nothing happens? Try to describe
the symptoms of your problem without using the words "does not work".
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 2 '05 #2
sure, thanks
(excuse me about my english)
all the session variable are cleaned
that is, session is lost

only 1 user can get session("aVar") = rs.getRows( )
the rest, will get a single session("id")= rs("user_id)

thanks again

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uj******** ******@TK2MSFTN GP09.phx.gbl...
bajopalabra wrote:
hi
session("myVar" ) = rs.getRows( )
don't work when number of records
is greater than 10

does anybody know WHY ???

is it a Session object limitation ???
What does "don't work" mean? Error message? Nothing happens? Try to

describe the symptoms of your problem without using the words "does not work".
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Nov 2 '05 #3
Is this something you can reliably reproduce? IE, can you modify the
getrows() statement so it only uses 9 records in the resulting array
session("aVar") = rs.getRows(9)
and have the problem go away?

And then change it to
session("aVar") = rs.getRows(10)
to cause the problem to reappear?

Bob Barrows
bajopalabra wrote:
sure, thanks
(excuse me about my english)
all the session variable are cleaned
that is, session is lost

only 1 user can get session("aVar") = rs.getRows( )
the rest, will get a single session("id")= rs("user_id)

thanks again

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uj******** ******@TK2MSFTN GP09.phx.gbl...
bajopalabra wrote:
hi
session("myVar" ) = rs.getRows( )
don't work when number of records
is greater than 10

does anybody know WHY ???

is it a Session object limitation ???

What does "don't work" mean? Error message? Nothing happens? Try to
describe the symptoms of your problem without using the words "does
not work". --
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 2 '05 #4
Oh! And if you have "on error resume next" in your code, comment it out
until you figure out what the real problem is.
bajopalabra wrote:
sure, thanks
(excuse me about my english)
all the session variable are cleaned
that is, session is lost

only 1 user can get session("aVar") = rs.getRows( )
the rest, will get a single session("id")= rs("user_id)

thanks again

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uj******** ******@TK2MSFTN GP09.phx.gbl...
bajopalabra wrote:
hi
session("myVar" ) = rs.getRows( )
don't work when number of records
is greater than 10

does anybody know WHY ???

is it a Session object limitation ???

What does "don't work" mean? Error message? Nothing happens? Try to
describe the symptoms of your problem without using the words "does
not work". --
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 2 '05 #5
i have no "on error" statement

i simply touch the table in the database
to get the number of records i desire
and then i execute the asp file

i test with 1 , 2 , .... thru 9
and, when i insert the 10th row in the table :
- the asp file get 10 rows
- But the "session array" is empty
- 2 other "single session vars" previously created
are empty too ...

now, i delete a row :
- the asp file get 9 rows
- the "session array" has correct values
- 2 other "single session vars" hace correct values

each row has 55 bytes

i tried ( with 10 or more rows ) :

dim aux( 20, 20 )
aux= rs.getRows ( )
session("arrayV ar")= aux

but the effect is the same

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uF******** ********@tk2msf tngp13.phx.gbl. ..
Is this something you can reliably reproduce? IE, can you modify the
getrows() statement so it only uses 9 records in the resulting array
session("aVar") = rs.getRows(9)
and have the problem go away?

And then change it to
session("aVar") = rs.getRows(10)
to cause the problem to reappear?

Bob Barrows
bajopalabra wrote:
sure, thanks
(excuse me about my english)
all the session variable are cleaned
that is, session is lost

only 1 user can get session("aVar") = rs.getRows( )
the rest, will get a single session("id")= rs("user_id)

thanks again

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uj******** ******@TK2MSFTN GP09.phx.gbl...
bajopalabra wrote:
hi
session("myVar" ) = rs.getRows( )
don't work when number of records
is greater than 10

does anybody know WHY ???

is it a Session object limitation ???

What does "don't work" mean? Error message? Nothing happens? Try to
describe the symptoms of your problem without using the words "does
not work". --
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Nov 2 '05 #6
Sorry, I've never seen anything like this. Here is my attempt to reproduce
the symptoms. It works fine for me. How about you?

<%
if len(Request.For m("rows"))=0 then
session("test1" ) = "Here I am"
session("test2" ) = "I am here too"
end if
dim rs, i
set rs=createobject ("adodb.records et")
rs.Fields.appen d "id",3
rs.Fields.appen d "col1",200, 50
rs.Fields.appen d "col2",200, 50
rs.Open
for i = 1 to 15
rs.AddNew array("id","col 1","col2"), _
array(i,"this is some test data ","this is some more test data")
next
i=Request.Form( "rows")
if len(i)=0 then i = 5
'Response.Write rs.RecordCount
rs.MoveFirst
session("data") = rs.GetRows(i)
rs.Close

%>
<html><body><fo rm method="post">
Enter rows to store:&nbsp;<in put name="rows" type="text" value="<%=i%>"> <BR>
Session("test1" ): <%=Session("tes t1")%><BR>
Session("test2" ): <%=Session("tes t2")%><BR>
Session("data") : <BR>
Contains <%=ubound(sessi on("data"),2) + 1%> records<BR>
First record: <%=Session("dat a")(0,0) & " - " & Session("data") (1,0)%><BR>
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form></body></html>


bajopalabra wrote:
i have no "on error" statement

i simply touch the table in the database
to get the number of records i desire
and then i execute the asp file

i test with 1 , 2 , .... thru 9
and, when i insert the 10th row in the table :
- the asp file get 10 rows
- But the "session array" is empty
- 2 other "single session vars" previously created
are empty too ...

now, i delete a row :
- the asp file get 9 rows
- the "session array" has correct values
- 2 other "single session vars" hace correct values

each row has 55 bytes

i tried ( with 10 or more rows ) :

dim aux( 20, 20 )
aux= rs.getRows ( )
session("arrayV ar")= aux

but the effect is the same

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uF******** ********@tk2msf tngp13.phx.gbl. ..
Is this something you can reliably reproduce? IE, can you modify the
getrows() statement so it only uses 9 records in the resulting array
session("aVar") = rs.getRows(9)
and have the problem go away?

And then change it to
session("aVar") = rs.getRows(10)
to cause the problem to reappear?

Bob Barrows
bajopalabra wrote:
sure, thanks
(excuse me about my english)
all the session variable are cleaned
that is, session is lost

only 1 user can get session("aVar") = rs.getRows( )
the rest, will get a single session("id")= rs("user_id)

thanks again

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el
mensaje news:uj******** ******@TK2MSFTN GP09.phx.gbl...
bajopalabra wrote:
> hi
> session("myVar" ) = rs.getRows( )
> don't work when number of records
> is greater than 10
>
> does anybody know WHY ???
>
> is it a Session object limitation ???
>
What does "don't work" mean? Error message? Nothing happens? Try to
describe the symptoms of your problem without using the words "does
not work". --
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will
get a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 2 '05 #7
ok, i suspect we have something
try changing

session("data") = rs.GetRows( i )
for
session("data") = rs.GetRows( )

I WAS ommiting the "rec count" paramenter of GetRows
should it be that , right ?

i go to find out now
why existing session var are cleaned
and then i post the result

thanks you much,
Bob

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:e5******** *******@TK2MSFT NGP10.phx.gbl.. .
Sorry, I've never seen anything like this. Here is my attempt to reproduce
the symptoms. It works fine for me. How about you?

<%
if len(Request.For m("rows"))=0 then
session("test1" ) = "Here I am"
session("test2" ) = "I am here too"
end if
dim rs, i
set rs=createobject ("adodb.records et")
rs.Fields.appen d "id",3
rs.Fields.appen d "col1",200, 50
rs.Fields.appen d "col2",200, 50
rs.Open
for i = 1 to 15
rs.AddNew array("id","col 1","col2"), _
array(i,"this is some test data ","this is some more test data")
next
i=Request.Form( "rows")
if len(i)=0 then i = 5
'Response.Write rs.RecordCount
rs.MoveFirst
session("data") = rs.GetRows(i)
rs.Close

%>
<html><body><fo rm method="post">
Enter rows to store:&nbsp;<in put name="rows" type="text" value="<%=i%>"> <BR> Session("test1" ): <%=Session("tes t1")%><BR>
Session("test2" ): <%=Session("tes t2")%><BR>
Session("data") : <BR>
Contains <%=ubound(sessi on("data"),2) + 1%> records<BR>
First record: <%=Session("dat a")(0,0) & " - " & Session("data") (1,0)%><BR>
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form></body></html>


bajopalabra wrote:
i have no "on error" statement

i simply touch the table in the database
to get the number of records i desire
and then i execute the asp file

i test with 1 , 2 , .... thru 9
and, when i insert the 10th row in the table :
- the asp file get 10 rows
- But the "session array" is empty
- 2 other "single session vars" previously created
are empty too ...

now, i delete a row :
- the asp file get 9 rows
- the "session array" has correct values
- 2 other "single session vars" hace correct values

each row has 55 bytes

i tried ( with 10 or more rows ) :

dim aux( 20, 20 )
aux= rs.getRows ( )
session("arrayV ar")= aux

but the effect is the same

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el mensaje
news:uF******** ********@tk2msf tngp13.phx.gbl. ..
Is this something you can reliably reproduce? IE, can you modify the
getrows() statement so it only uses 9 records in the resulting array
session("aVar") = rs.getRows(9)
and have the problem go away?

And then change it to
session("aVar") = rs.getRows(10)
to cause the problem to reappear?

Bob Barrows
bajopalabra wrote:
sure, thanks
(excuse me about my english)
all the session variable are cleaned
that is, session is lost

only 1 user can get session("aVar") = rs.getRows( )
the rest, will get a single session("id")= rs("user_id)

thanks again

--
atte, Hernán

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> escribió en el
mensaje news:uj******** ******@TK2MSFTN GP09.phx.gbl...
> bajopalabra wrote:
>> hi
>> session("myVar" ) = rs.getRows( )
>> don't work when number of records
>> is greater than 10
>>
>> does anybody know WHY ???
>>
>> is it a Session object limitation ???
>>
> What does "don't work" mean? Error message? Nothing happens? Try to
> describe the symptoms of your problem without using the words "does
> not work". --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will
> get a quicker response by posting to the newsgroup.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Nov 2 '05 #8
bajopalabra wrote:
ok, i suspect we have something
try changing

session("data") = rs.GetRows( i )
for
session("data") = rs.GetRows( )

OK, I made the change. Still no problem:
<%
if len(Request.For m("rows"))=0 then
session("test1" ) = "Here I am"
session("test2" ) = "I am here too"
end if
dim rs, i,j
i=Request.Form( "rows")
if len(i)=0 then i = 5
set rs=createobject ("adodb.records et")
rs.Fields.appen d "id",3
rs.Fields.appen d "col1",200, 50
rs.Fields.appen d "col2",200, 50
rs.Open
for j = 1 to i
rs.AddNew array("id","col 1","col2"), _
array(j,"this is some test data ","this is some more test data")
next
'Response.Write rs.RecordCount
rs.MoveFirst
session("data") = rs.GetRows()
rs.Close

%>
<html><body><fo rm method="post">
Enter rows to store:&nbsp;<in put name="rows" type="text" value="<%=i%>"> <BR>
Session("test1" ): <%=Session("tes t1")%><BR>
Session("test2" ): <%=Session("tes t2")%><BR>
Session("data") : <BR>
Contains <%=ubound(sessi on("data"),2) + 1%> records<BR>
First record: <%=Session("dat a")(0,0) & " - " & Session("data") (1,0)%><BR>
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form></body></html>

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 2 '05 #9
"Bob Barrows [MVP]" wrote in message
news:uj******** ******@TK2MSFTN GP09.phx.gbl...
: bajopalabra wrote:
: > hi
: > session("myVar" ) = rs.getRows( )
: > don't work when number of records
: > is greater than 10
: >
: > does anybody know WHY ???
: >
: > is it a Session object limitation ???
: >
: What does "don't work" mean?

bad gramma'
Nov 4 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1773
by: Jack | last post by:
I have a form that has few text boxes to input. However, after saving, if the user comes back to the same form, then the input boxes should be locked. I would like to know whether this can be handled by session("locked") variable or any other way. Any information to handle this concept is appreciated. Thanks.
4
2347
by: Larry R Harrison Jr | last post by:
I have them working now, courtesy of the link given in the prior thread--the HVMenu over at Dynamic Drive myself. http://www.dynamicdrive.com I have them working as side-bar menus, not horizontal ones on TOP of the page. I figured it out and have it working fine, except for one thing--apparently I need to insert the code for the menu for every last HTML file I have
9
4022
by: mallyonline | last post by:
I last posted to this group about 6 months ago and was very pleased by the excellent response I got and the great help offered to me. I am back this time with another request for your expert help on a bit of ASP code I use on my windows server 2003 with IIS6 machine. I would like the code below to display in different colours depending on the status of the page. I am looking to make the not logged in code appear red and the logged in...
3
4574
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function Session_Start() { Session.Timeout = 3000; } in global.asax
10
2415
by: thomson | last post by:
Hi, i create a session variable in C# as follows Session , but iam not able to access the variable in VB.net like intmode=Session("var"); Why is that ? Regards
0
982
by: ujjc001 | last post by:
Here's the layout. Aspx has a repeater on the left, which will call a function to change a session var that holds the usercontrol name to add (i.e. "uc_myusercontrol.ascx") and then calls default.aspx which in page init, loads the control. The problem is that if the user clicks on a link, the page starts to reload but the user clicks on another link prior to the page completing the load the viewstate error happens. Here's some relevant...
1
1338
by: Arjun | last post by:
Hi, I wasn't sure quite what to title this, so I just chose something that sounded reasonably correct. If I butcher and/or misuse any terms in this post, then I apologize, please correct me. My problem is this: I want to program a GNU Screen - like application, though not _nearly_ on the same scale. The only thing I really want it to be able to do is support multiple "windows", as it were, and automatically notify the user when one of...
0
1958
by: bolinc | last post by:
Can someone tell me why this isn't working? <Script language="JavaScript"><!--// var bJavaEnabled = Boolean(clientInformation.javaEnabled()); if (bJavaEnabled){ document.write('<form method="post" name="hiddenform" id="hiddenform" action="Specials.asp">'); document.write('<input type="hidden" id="enabled" name="enabled" value="1">'); document.write('</form>'); } //-->
1
5467
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one group get automatically re-directed after uploading. However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension. Members from the second group do see the "exceeds max file...
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10595
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9379
agi2029
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...
1
7793
isladogs
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...
0
6979
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();...
0
5828
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4458
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
2
4021
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.