Results 1 to 7 of 7

Thread: Passing Objects between Webpages....

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    Near You
    Posts
    11

    Passing Objects between Webpages....

    Dear Guys,

    I want to pass objects between web pages created using VB.NET.

    I want to create one object and use it in all tha pages of my application. So that once given value be retained.

    How do i do it???? Please Explain..

    Regards

    Anit Bhatnagar
    Regards

    Anit Bhatnagar

  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    Near You
    Posts
    11
    Hay please reply......
    Regards

    Anit Bhatnagar

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Create a class with the desired property there. Instantiate it as Public. Simply use across all pages by calling it.

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    Near You
    Posts
    11
    i did that. when i create object on one Webform, how do i pass it to another webForm?

    I want to create an object which should hold property that i can access to various forms.

    Regards

    Anit
    Regards

    Anit Bhatnagar

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Did you Dim it Public?

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    Near You
    Posts
    11
    USed public
    Regards

    Anit Bhatnagar

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Maybe you should show some code.


    You should be accessing the value using something like

    myObjectInstance.VariableName

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