Acceptance With Grace. The best_case scenario__and honestly, the most common reaction__is that your boss will accept your resignation with understanding and sincere congratulations. Your manager will be happy to see that you're advancing your career and moving on to something bigger and better.
Also think about your relationship with your manager. Would he or she have reason to think that you'll waste your last two weeks or distract your co_workers instead of doing what you can to make the transition seamless? If so, you may be asked to cut your two weeks short.