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 9 3635
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.
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******@NOyahoo.SPAMcom> escribió en el mensaje
news:uj**************@TK2MSFTNGP09.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.
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******@NOyahoo.SPAMcom> escribió en el mensaje news:uj**************@TK2MSFTNGP09.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.
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******@NOyahoo.SPAMcom> escribió en el mensaje news:uj**************@TK2MSFTNGP09.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.
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("arrayVar")= aux
but the effect is the same
--
atte, Hernán
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> escribió en el mensaje
news:uF****************@tk2msftngp13.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******@NOyahoo.SPAMcom> escribió en el mensaje news:uj**************@TK2MSFTNGP09.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.
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.Form("rows"))=0 then
session("test1") = "Here I am"
session("test2") = "I am here too"
end if
dim rs, i
set rs=createobject("adodb.recordset")
rs.Fields.append "id",3
rs.Fields.append "col1",200,50
rs.Fields.append "col2",200,50
rs.Open
for i = 1 to 15
rs.AddNew array("id","col1","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><form method="post">
Enter rows to store: <input name="rows" type="text" value="<%=i%>"><BR>
Session("test1"): <%=Session("test1")%><BR>
Session("test2"): <%=Session("test2")%><BR>
Session("data"): <BR>
Contains <%=ubound(session("data"),2) + 1%> records<BR>
First record: <%=Session("data")(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("arrayVar")= aux
but the effect is the same
-- atte, Hernán
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> escribió en el mensaje news:uF****************@tk2msftngp13.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******@NOyahoo.SPAMcom> escribió en el mensaje news:uj**************@TK2MSFTNGP09.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.
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******@NOyahoo.SPAMcom> escribió en el mensaje
news:e5***************@TK2MSFTNGP10.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.Form("rows"))=0 then session("test1") = "Here I am" session("test2") = "I am here too" end if dim rs, i set rs=createobject("adodb.recordset") rs.Fields.append "id",3 rs.Fields.append "col1",200,50 rs.Fields.append "col2",200,50 rs.Open for i = 1 to 15 rs.AddNew array("id","col1","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><form method="post"> Enter rows to store: <input name="rows" type="text"
value="<%=i%>"><BR> Session("test1"): <%=Session("test1")%><BR> Session("test2"): <%=Session("test2")%><BR> Session("data"): <BR> Contains <%=ubound(session("data"),2) + 1%> records<BR> First record: <%=Session("data")(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("arrayVar")= aux
but the effect is the same
-- atte, Hernán
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> escribió en el mensaje news:uF****************@tk2msftngp13.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******@NOyahoo.SPAMcom> escribió en el mensaje news:uj**************@TK2MSFTNGP09.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.
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.Form("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.recordset")
rs.Fields.append "id",3
rs.Fields.append "col1",200,50
rs.Fields.append "col2",200,50
rs.Open
for j = 1 to i
rs.AddNew array("id","col1","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><form method="post">
Enter rows to store: <input name="rows" type="text" value="<%=i%>"><BR>
Session("test1"): <%=Session("test1")%><BR>
Session("test2"): <%=Session("test2")%><BR>
Session("data"): <BR>
Contains <%=ubound(session("data"),2) + 1%> records<BR>
First record: <%=Session("data")(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.
"Bob Barrows [MVP]" wrote in message
news:uj**************@TK2MSFTNGP09.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' This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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.
...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |