M
Matt M
Ok. So I'm passing values between web pages, as per microsoft's framework
development guide
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht
ml/cpconPassingServerControlValuesBetweenPages.asp)
So, I have two pages, one that has some public properties and fires a
Server.Transfer("receivepage.aspx");
The receivepage.aspx can then get some of the public properties I've set on
the first page.
What I really want to be able to do is call the receivepage.aspx from a
variety of other pages. I am confused a little, because in the receivepage
you have to reference the sending page
i.e.
public sendingpage callPage;
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
callPage = (sendingpage) Context.Handler;
}
How can I dynamically choose which page I want to reference? Is it
possible? Thanks for any help.
= matt =
development guide
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht
ml/cpconPassingServerControlValuesBetweenPages.asp)
So, I have two pages, one that has some public properties and fires a
Server.Transfer("receivepage.aspx");
The receivepage.aspx can then get some of the public properties I've set on
the first page.
What I really want to be able to do is call the receivepage.aspx from a
variety of other pages. I am confused a little, because in the receivepage
you have to reference the sending page
i.e.
public sendingpage callPage;
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
callPage = (sendingpage) Context.Handler;
}
How can I dynamically choose which page I want to reference? Is it
possible? Thanks for any help.
= matt =