我已经从数据表中为标签分配了值,当我使用断点检查时显示标签的值。但是它没有显示在浏览器中
if(loadingHubArrivalTable.Rows.Count > 0 && dt != Convert.ToDateTime("1900-01-01"))
{
//ReferenceLabel.Text = loadingHubArrivalAdapter.SelectReferenceNumber(Convert.ToInt32(VehicleDropDownList.SelectedValue)).ToString();
ReferenceLabel.Text = loadingHubArrivalTable.Rows[0]["ReferenceNumber"].ToString();
VehicleNumberLabel.Text = VehicleDropDownList.SelectedItem.Text;
//loadingHubArrivalTable.Rows[0]["VehicleNumber"].ToString();
ObjectDataSource1.Select();
CheckBoxList.DataBind();
}