MTSkull
Centurion
I have a web form that takes in user input. Then I transfer to a Processing page that tells the user to wait while some stuff is happening, and plays a simple flash animation.
Source page (GenerateMR)
Then I try to set an object on the destination page so I can read back the values entered on the source page.
Destination Page (MRProcessing)
Basically I want to switch to a "Processing files, Please Wait" Page while I am doing stuff on the server. Is this method a good fit, if I can get it working or should I be doing something else.
Thanks
MTS
Source page (GenerateMR)
Code:
protected void cmdGenerateMR_Click(object sender, EventArgs e)
{
Server.Transfer("MRProcessing.aspx",true);
}
Then I try to set an object on the destination page so I can read back the values entered on the source page.
Destination Page (MRProcessing)
Code:
private GenerateMR frmSource;
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
//Following throws InvalidCastException
//Unable to cast object of type 'ASP.fieldservice_generatemr_aspx' to type 'FieldReturns.GenerateMR'.
//frmSource = (GenerateMR)Context.Handler;
//also generates above error..
GenerateMR frmSource = (GenerateMR)PreviousPage;
}
Basically I want to switch to a "Processing files, Please Wait" Page while I am doing stuff on the server. Is this method a good fit, if I can get it working or should I be doing something else.
Thanks
MTS