Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Server.Transfer in Component

Reply
Thread Tools

Server.Transfer in Component

 
 
Martin
Guest
Posts: n/a
 
      02-02-2004
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
 
Reply With Quote
 
 
 
 
John Timney \(Microsoft MVP\)
Guest
Posts: n/a
 
      02-02-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remoting Component --> Com+ Component: Karuppasamy ASP .Net 0 01-15-2004 10:21 AM
com+ component and Component Service Karuppasamy ASP .Net 1 01-14-2004 11:30 PM
com+ component and Component Service Karuppasamy ASP .Net 0 01-13-2004 06:09 PM
using client-side component keeps calling component's init Jim Hammond ASP .Net 1 11-12-2003 08:13 PM
Re: Calling a .NET component from a COM component remotely Soni ASP .Net 0 07-25-2003 04:33 AM



Advertisments