circular reference in cross page post back

W

WebBuilder451

I'm reying to get around the problem of cross page post back. I'm attempting
to use an interface to cast the previous page.
if (PreviousPage != null)
{
ICommonPostback frm = PreviousPage as ICommonPostback;
...
...
Previous page exists, but after casting frm is still null. I'm hoping this
will work. If i reference this page directly using the <%@ PreviousPageType
VirtualPath="~/Admin/ItemMaster.aspx" %> i get a circular reference.

--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)

kes
 
T

Teemu Keiski

Are you doing cross-page postback to the same page if you'd get circular
reference?

Only way the cast succeeds is that the previous page really implements the
interface.
 
W

WebBuilder451

Thanks for replying.
I ended up using an Interface. The problem was that both pages refered to
each other. I was suprised that so little was written about this on the web.
I even posted my results so that other could benifit. It's a humble effort,
but i hope it will help some.
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)

kes
 

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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top