Identify the correctly punctuated sentence from among the following:
AHe said: 'Why did you do that, when I'd told you not to?"
BHe said, 'Why did you do that, when I'd told you not to?"
CHe said: 'Why did you do that; when I'd told you not to?"
DHe said, 'Why did you do that; when I'd told you not to?"