I've put the process to import as a stand alone file that takes a query string (x= current row position ; y = total rows ; f = filename saved on server )
Originally I thought that the first request could call the second request etc.
So processXml.aspx?x=1&y=1997&f=myfile.xml when completed would reload processXml.aspx?x=2&y=1997&f=myfile.xml then processXml.aspx?x=3&y=1997&f=myfile.xml etc
however if i use
Expand|Select|Wrap|Line Numbers
- string fileName = Request.QueryString["f"].ToString();
- string tX = Request.QueryString["x"].ToString();
- string tY = Request.QueryString["y"].ToString();
- int iX = Convert.ToInt16(tX);
- string sX2 = Convert.ToString(iX+1);
- ///do a long running thing
- ...
- Response.Redirect("processXml.aspx?x=" + sX2 + "&y=" + tY + "&f=" + fileName, true);
no output is returned to the user
then I thought what about
Expand|Select|Wrap|Line Numbers
- Response.AppendHeader("Refresh", "0; processXml.aspx?x=" + sX2 + "&y=" + tY + "&f=" + fileName);
So....
what is a good approach to this?
I'm wondering about using an IFrame maybe and calling it in JavaScript but this would be new territory for me, there must be a good pattern for this sort of thing
Any help very gratefully received :)