protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["TourId"] != null && Convert.ToInt32(Request.QueryString["TourId"]) > 0) { _tour = _module.TourGetById(Convert.ToInt32(Request.QueryString["TourId"])); if (!IsPostBack) { LocalizeControls(); GetAddExpenseList(); IList numberOfCustomers = new ArrayList(); for (int ii = 1; ii <= 8; ii++) { numberOfCustomers.Add(ii); } rptExpensePrice.DataSource = numberOfCustomers; IList dayRange = new ArrayList(); for (int ii = 1; ii <= _tour.NumberOfDay; ii++) { dayRange.Add(ii); } ddlDayFrom.DataSource = dayRange; ddlDayFrom.DataBind(); ddlDayTo.DataSource = dayRange; ddlDayTo.DataBind(); rptAddedExpenses.DataBind(); rptExpensePrice.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["TourId"] != null && Convert.ToInt32(Request.QueryString["TourId"]) > 0) { _tour = _module.TourGetById(Convert.ToInt32(Request.QueryString["TourId"])); if (!IsPostBack) { LocalizeControls(); GetTourConfigList(); GetTourList(); rptTourConfigs.DataBind(); rptTourPackages.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Request.QueryString["TourId"])) { return; } _tour = _module.TourGetById(Convert.ToInt32(Request.QueryString["TourId"])); if (!IsPostBack) { rptRelatedTours.DataSource = _module.RelatedTourGetByTour(_tour); rptRelatedTours.DataBind(); rptTours.DataSource = _module.TourGetAll(); rptTours.DataBind(); } }