コード例 #1
0
 protected void Page_Unload(object sender, EventArgs e)
 {
     if (restaurantBookingByDateBLL != null)
     {
         restaurantBookingByDateBLL.Dispose();
         restaurantBookingByDateBLL = null;
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         txtDate.Text          = Date.ToString("dd/MM/yyyy");
         rptBooking.DataSource = RestaurantBookingByDateBLL.RestaurantBookingGetAllByDate(Date).OrderBy(x => x.PartOfDay).ThenBy(x => x.Time);
         rptBooking.DataBind();
     }
 }