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. Advertising

  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. 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. Soni
    Replies:
    0
    Views:
    1,103
  2. Karuppasamy

    com+ component and Component Service

    Karuppasamy, Jan 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    633
    Karuppasamy
    Jan 13, 2004
  3. nicholas
    Replies:
    3
    Views:
    878
    nicholas
    Oct 4, 2004
  4. Jon Turner

    Is there a File Transfer Component

    Jon Turner, Jan 26, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    164
  5. Jim
    Replies:
    1
    Views:
    986
    Aaron Bertrand - MVP
    Jan 28, 2004
Loading...

Share This Page