Hi,
I have one question.
Example: I have a table in which each row have atag items and other things.
And when I loaded the entire list of rows and using the "for" or "forech" loop pass to the next page by clicking on the Atag and then come back to the table are all my items that were previously loaded are cleared.
How can cache information about my list of rows?
Back to previous page
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Back to previous page
Hello mstachyra,
Unfortunately it is not possible to cache this items.
But you can use a little workaround in which you load the items after every history.back() new.
for example:
Kind regards,
Markus (S)
Unfortunately it is not possible to cache this items.
But you can use a little workaround in which you load the items after every history.back() new.
for example:
Code: Select all
WebDocument webdocument = "/dom[@domain='*****']";
IList<ATag> ataglist = repo.******.Find<ATag>("/dom[@domain='****']//atag[*****]");
int counter = ataglist.Count;
for(int i=1;i<=counter;i++)
{
webdocument.WaitForDocumentLoaded();
ataglist = repo.******.Find<ATag>("/dom[@domain='****']//atag[*****]["+(i)+"]");
foreach(ATag AElement in ataglist)
{
//yourcode
.....
webdocument.ExecuteScript("history.back()");
.....
}
}
Markus (S)