Thanks, that got me past the build problem but when I run the app I get
the
message "the specific cast is not valid". Line 173 is red.
Line 171: Session["resmonth"]=Calendar1.SelectedDate.Month;
Line 172:
Line
173:
if(DateTime.Compare((DateTime)Session["opens"],(DateTime)Session["resdate"])
Line 174: this.messagebox.Text="Reservations not available prior to
"+Session["opens"];
Line 175: if (DateTime.Compare((DateTime)Session["closes"],
(DateTime)Session["resdate"]) > 0)
NCZIMM said:
if (DateTime.Compare(Session["opens"], Session["resdate"]) > 0) produces
three errors. I need to know how to do DateTime comparison on a web page
in
postback.