Unanswered Prayers

After the fact, and if things work out in our favor, we can view unanswered prayers as a blessing. However, in the midst of prayers going unanswered the experience can be heart breaking. How should we handle unanswered prayers?