Results 1 to 3 of 3

Thread: db connection

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    db connection

    I have a database connection and have populated a dataset for a page. My question is can you pass the database connection to the next page? Can you use that same dataset on another page?

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    You can save your recordset object in a session variable and then read the session variable on the next page back in to a recordset.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    If you save your dataset in a session make sure you convert it back to a dataset when you call it again.

    VB Code:
    1. ds = Ctype(Session("DS"), dataset)
    Last edited by rdove; Dec 11th, 2002 at 12:38 PM.
    ~Ryan





    Have I helped you? Please Rate my posts.

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