Server.Transfer in Component

Discussion in 'ASP .Net' started by Martin, Feb 2, 2004.

  1. Martin

    Martin Guest

    Dear Group

    I'm having a component (Component1) and a page (main.aspx).
    Calling Server.Transfer("main.aspx")in Component1 gives me "Object
    reference not set to an instance of an object." Calling it from
    another page works just fine.

    I'm sure I missed something to declare, import or similar and have
    tried several things with no luck. I'm a beginner so any fool-proof
    plain-english hints are greatly appreciated!

    Thanks for your time & efforts,

    Martin
     
    Martin, Feb 2, 2004
    #1
    1. Advertisements

  2. try

    context.Server.Transfer

    --
    Regards

    John Timney
    Microsoft Regional Director
    Microsoft MVP
    ----------------------------------------------------------------------------
    ------------------------------------
    <blatant plug>
    Professional .NET for Java Developers with C#- ISBN: 1-861007-91-4
    Professional Windows Forms - ISBN: 1861005547
    Professional JSP 2nd Edition - ISBN: 1861004958
    Professional JSP - ISBN:
    1861003625
    Beginning JSP Web Development - ISBN: 1861002092
    </blatant plug>
    ----------------------------------------------------------------------------
    ------------------------------------

    "Martin" <> wrote in message
    news:...
    > Dear Group
    >
    > I'm having a component (Component1) and a page (main.aspx).
    > Calling Server.Transfer("main.aspx")in Component1 gives me "Object
    > reference not set to an instance of an object." Calling it from
    > another page works just fine.
    >
    > I'm sure I missed something to declare, import or similar and have
    > tried several things with no luck. I'm a beginner so any fool-proof
    > plain-english hints are greatly appreciated!
    >
    > Thanks for your time & efforts,
    >
    > Martin
     
    John Timney \(Microsoft MVP\), Feb 2, 2004
    #2
    1. Advertisements

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. Adrian Bezzina
    Replies:
    0
    Views:
    664
    Adrian Bezzina
    Aug 7, 2003
  2. gh0st54
    Replies:
    6
    Views:
    8,786
    Natty Gur
    Aug 19, 2003
  3. nicholas
    Replies:
    3
    Views:
    1,052
    nicholas
    Oct 4, 2004
  4. ewolfman
    Replies:
    4
    Views:
    3,519
    ewolfman
    Feb 13, 2006
  5. Jon Turner

    Is there a File Transfer Component

    Jon Turner, Jan 26, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    207
  6. JT

    Server.Transfer vs. Server.Execute

    JT, Sep 9, 2003, in forum: ASP General
    Replies:
    1
    Views:
    189
    Ray at
    Sep 9, 2003
  7. David C. Holley

    server.execute/response.redirect/server.transfer

    David C. Holley, Jan 17, 2004, in forum: ASP General
    Replies:
    6
    Views:
    609
    David Holley
    Jan 18, 2004
  8. Jim
    Replies:
    1
    Views:
    1,373
    Aaron Bertrand - MVP
    Jan 28, 2004
Loading...