Wont start..like i have NO battery

Not sure if this was mentioned yet or maybe I missed seeing it, but how about the alternator. One time my alternator died on me while driving and when I shut the car off it wouldn't start(like it had a very dead battery) unless I jumped started it. My battery at the time was good.