BDRichardson
Programmer
Hi,
This may be silly or strange query, but is it sensible and practical to transfer to a dynamically constructed page?
By which, I mean I would like transfer to a page by clicking on a button. However, instead of using the PostBackUrl property, I wish to call a Page Constructor passing Arguments. Those arguments will be used to set properties for the Page to be loaded.
For example, something like:
btn_Click( Object sender, EventArgs e)
{
Page testPage = new TestPage( Arg1, Arg2, Arg3);
Server.Transfer( testPage);
}
This may be silly or strange query, but is it sensible and practical to transfer to a dynamically constructed page?
By which, I mean I would like transfer to a page by clicking on a button. However, instead of using the PostBackUrl property, I wish to call a Page Constructor passing Arguments. Those arguments will be used to set properties for the Page to be loaded.
For example, something like:
btn_Click( Object sender, EventArgs e)
{
Page testPage = new TestPage( Arg1, Arg2, Arg3);
Server.Transfer( testPage);
}