public void Commit(string result)
{
// It is possible for Commit() to be called numerous times during the same postback so we just remember the desired state
_closeString = result;
_shouldClose = true;
}