For a person with epilepsy, does their diet have an effect on causing a seizure?

Are there any foods, whether not enough of or too much of, that may cause a seizure? What about sugar or salt?