asp.Netの基礎知識
473 ワード
1、DropDownListの付与
2、GridViewテンプレート列取値protected void Button 1_Click(object sender, EventArgs e) { for (int i=0; i< GVListShow.Rows.Count; i++) { ((Label)GVListShow.Rows[i].FindControl("Labpexamroom_name")).Text = "44445"; } }
Response.Write(DropDownList1.Items.FindByText(" ").Value);
Response.Write(DropDownList1.Items.FindByValue("0536").Text);
Response.Write(DropDownList1.SelectedItem.Value);
2、GridViewテンプレート列取値protected void Button 1_Click(object sender, EventArgs e) { for (int i=0; i< GVListShow.Rows.Count; i++) { ((Label)GVListShow.Rows[i].FindControl("Labpexamroom_name")).Text = "44445"; } }