protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRow vsDr = (DataRow)((DataRowView)e.Item.DataItem).Row; TextBox ltName = (TextBox)e.Item.FindControl("ltName"); DropDownList DropDownList2 = (DropDownList)e.Item.FindControl("DropDownList2"); TextBox ltForecastPrice = (TextBox)e.Item.FindControl("ltForecastPrice"); TextBox ltForecastBiddingDate = (TextBox)e.Item.FindControl("ltForecastBiddingDate"); TextBox ltNotes = (TextBox)e.Item.FindControl("ltNotes"); foreach (string DataName in Unitlist.GetBid().Split(',')) { DropDownList2.Items.Add(new ListItem(DataName)); DropDownList2.SelectedItem.Text = vsDr["Status"].ToString(); } ltName.Text = vsDr["BidName"].ToString(); Session["bid"] = vsDr["BID"].ToString(); ltForecastPrice.Text = vsDr["ForecastPrice"].ToString(); ltForecastBiddingDate.Text = vsDr["ForecastBiddingDate"].ToString(); ltNotes.Text = vsDr["Notes"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { foreach (string DataName in Unitlist.GetBid().Split(',')) { DropDownList2.Items.Add(new ListItem(DataName)); } LoadContent(); }
protected void Page_Load(object sender, EventArgs e) { foreach (string DataName in Unitlist.GetBid().Split(',')) { DropDownList2.Items.Add(new ListItem(DataName)); } //DropDownList DDL = (DropDownList)Master.FindControl("Ddl_Project"); //DDL.Visible = false; }