protected void rptCharterRanger_OnItemDataBound(object sender, RepeaterItemEventArgs e) { var qCruiseCharterRange = e.Item.DataItem as QCruiseCharterRange; if (qCruiseCharterRange != null) { if (_qQuotation != null) { var roomPrice = _module.GetCharterRangePrice(_qQuotation, qCruiseCharterRange, _trip); if (roomPrice != null) { var hidCharterRangePriceId = e.Item.FindControl("hidCharterRangePriceId") as HiddenField; if (hidCharterRangePriceId != null) { hidCharterRangePriceId.Value = roomPrice.Id.ToString(); } var txtCharterRangePriceUsd = e.Item.FindControl("txtCharterRangePriceUSD") as TextBox; if (txtCharterRangePriceUsd != null) { txtCharterRangePriceUsd.Text = roomPrice.Priceusd.ToString(); } var txtCharterRangePriceVnd = e.Item.FindControl("txtCharterRangePriceVND") as TextBox; if (txtCharterRangePriceVnd != null) { txtCharterRangePriceVnd.Text = roomPrice.Pricevnd.ToString(); } } } } }