Hi all,
I have been coding for some days on a webpart now. The point of this webpart is to clean up a given document library. I have 16 000+ msg files in there and I have to validate the To and From headers of each msg file against some given rules.
All is well, except for the fact that this process takes forever. All possible values that are allowed in To or From are stored in SPLists in SharePoint itself.
I was able to split the process of validating against the business rules and the webpart itself by calling that specific mail validate method asynchronously.
Now, the technical part where I am a bit lost:
The method returns a Dictionary which I want to bind to a CheckBoxList. So how can I do this? Because I have to wait until my asynchronous mail validate method is done until I can bind the datasource of the CheckBoxList?
My webpart consists actually out of a usercontrol which I load in the webpart.