Server.Transfer in Component

M

Martin

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
 
J

John Timney \(Microsoft MVP\)

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top