Results 1 to 5 of 5

Thread: Passing Classes from page to page *Resolved*

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Resolved Passing Classes from page to page *Resolved*

    Hey everyone.... not much of a ASP.NET person so I gotta ask, how do I pass a class object from page to page (it basically contains all the data for a form that spans multiple pages)

    I imagine I gotta use a session variable.... is this along the lines of correct?

    dim myCls as new myClass("Hi","there")
    dim MyCls2 as new myClass()
    session.add("myCls", myCls)
    myCls2 = session.item("myCls")

    Edit: I was close

    myCls2 = ctype(session.item("myCls"), myClass))
    Last edited by Graff; Mar 23rd, 2005 at 12:45 PM.
    If wishes were fishes we'd all cast nets.

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