As a principle 30-40 minutes before one's workout one should eat energy providing foods (rich in carbohydrates) best source would be glycogen rich or simple sugar based foods such as fruits/fruit juices.
Hope that helps!
Vikram
p.s: Abhilasha: thanks for the article; would like to know more about it.