Results 1 to 4 of 4

Thread: ASP Recordset Passing

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274
    Is it possible to pass a recordset from one page to another or can you only do it using a session variable?


  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    Unfortunatley all asp pages are stateless, so you can't pass object's between pages. The best way to get around this is to either pass the SQL string to the next page and or the Primary key of the field so you can get to that field in your new page.

    Hope this helps

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274
    The reason why I would like to pass a recordset is because I build it from scratch and it's disconnected from the database. I use it for a Report in Crystal. I ended up just putting it in a session variable.

    Thanks,

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Crystal pretty much requires you to use the Session Object for recordsets as well as it's oApp and oRpt objects. If they aren't there and you are using their rptserver.asp page, it simply will not work and you will end up wasting ALOT of time trying to figure out why. You can't even choose the name, it must be session("oRS"). (Unless of course you modify the rptserver to allow another name which would probably not be worth the effort)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width