Most of the information anyone needs on asking good questions is in the link that @admay posted. I'll just add/reiterate:
1. Show some effort. Don't ask people to "do your homework" so to speak. Explain what you already did / tried, what your current working theory is, etc.
2. Include relevant details. More is usually better, although you don't necessarily want to write a novel.