posting values across several pages.Newbie

Discussion in 'ASP .Net' started by B, Oct 18, 2006.

  1. B

    B Guest

    I keep running into Object reference not set to an instance of an
    object problem and I'm not sure why. My source page has a couple of
    textboxes and dropdowns that post values to page2.aspx. I used public
    members on the source page because the information is not sensitive.
    When i click on the button which has a postbackurl it works fine. Now,
    when I want to post a value from page2.aspx to page3.aspx I get the
    object reference problem. I have been trying to figure it out but with
    no luck, the only useful information I found was on msdn which stated
    if the current page is not the target of a cross-page post, the
    PreviousPage property returns null . Can anyone help point me in the
    right direction? or is there a better way of posting values across
    several pages?
     
    B, Oct 18, 2006
    #1
    1. Advertising

  2. read about session

    -- bruce (sqlwork.com)

    "B" <> wrote in message
    news:...
    >I keep running into Object reference not set to an instance of an
    > object problem and I'm not sure why. My source page has a couple of
    > textboxes and dropdowns that post values to page2.aspx. I used public
    > members on the source page because the information is not sensitive.
    > When i click on the button which has a postbackurl it works fine. Now,
    > when I want to post a value from page2.aspx to page3.aspx I get the
    > object reference problem. I have been trying to figure it out but with
    > no luck, the only useful information I found was on msdn which stated
    > if the current page is not the target of a cross-page post, the
    > PreviousPage property returns null . Can anyone help point me in the
    > right direction? or is there a better way of posting values across
    > several pages?
    >
     
    bruce barker \(sqlwork.com\), Oct 18, 2006
    #2
    1. Advertising

  3. hello,
    if you're using C# 2.0 then read about Page.PreviousPage property
    hope it'll help

    "B" wrote:

    > I keep running into Object reference not set to an instance of an
    > object problem and I'm not sure why. My source page has a couple of
    > textboxes and dropdowns that post values to page2.aspx. I used public
    > members on the source page because the information is not sensitive.
    > When i click on the button which has a postbackurl it works fine. Now,
    > when I want to post a value from page2.aspx to page3.aspx I get the
    > object reference problem. I have been trying to figure it out but with
    > no luck, the only useful information I found was on msdn which stated
    > if the current page is not the target of a cross-page post, the
    > PreviousPage property returns null . Can anyone help point me in the
    > right direction? or is there a better way of posting values across
    > several pages?
    >
    >
     
    =?Utf-8?B?T3Jlbg==?=, Oct 19, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Water Cooler v2

    Posting values between pages

    Water Cooler v2, Sep 3, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    458
  2. Chad
    Replies:
    2
    Views:
    2,915
  3. Ily
    Replies:
    1
    Views:
    293
    John Timney \(MVP\)
    Nov 21, 2006
  4. Avlan
    Replies:
    3
    Views:
    112
  5. Victor \Zverok\ Shepelev

    RDOC: several related modules in several C files

    Victor \Zverok\ Shepelev, Mar 6, 2007, in forum: Ruby
    Replies:
    3
    Views:
    197
    Max Lapshin
    Mar 16, 2007
Loading...

Share This Page