PreviousPageType Directive



I have this problem:

Page1.aspx have different controls and public properties and a button
that cross posts to Page3.aspx. In Page3 I have the directive:
<%@ PreviousPageType virtualpath="~/Page1.aspx"%>
and I can access the public properties in Page1.
everything works fine.

Now I need Page2.aspx, wich is quite similiar to Page1, to cross post
to Page3.aspx. What directive do I need in Page3 in order to access the
public properties of the PreviousPage wichever it is? Is it possible to
set two virtualpath?

Thank you in advance!



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