Ejemplo n.º 1
0
    private void initialize()
    {
        string sCheckInDate, sCheckOutDate, sAccomId, sBookingId;

        sCheckInDate  = Request.QueryString["cid"];
        sCheckOutDate = Request.QueryString["cod"];
        sAccomId      = Request.QueryString["accomid"];
        sBookingId    = Request.QueryString["bid"];
        if (sCheckInDate != null)
        {
            txtStartDate.Text = GF.GetDateFromYYYYMMDD(sCheckInDate).ToString();
        }
        else
        {
            txtStartDate.Text = string.Empty;
        }

        if (sCheckOutDate != null)
        {
            txtEndDate.Text = GF.GetDateFromYYYYMMDD(sCheckOutDate).ToString();
        }
        else
        {
            txtEndDate.Text = string.Empty;
        }

        if (sBookingId != null)
        {
            hfId.Value = sBookingId;
        }
        else
        {
            hfId.Value = "";
        }
        if (sAccomId != null)
        {
            ddlAccomodation.SelectedValue = sAccomId;
        }
        else
        {
            ddlAccomodation.SelectedIndex = 0;
        }
    }