我绑定下拉列表在运行时数据填充到数据库中。它好吧很好。但是,如果我想选择特定的值并在消息框中显示。它只显示默认值。Asp.Net DROPDOWNLIST
这里我的代码是:
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("You have selected " + DropDownList1.SelectedItem.Value);
}
所以,我怎么能显示在消息框中选定的值。 这里我很新。请帮帮我。
12问题和没有答案接受? – V4Vendetta 2011-04-26 06:44:26
如何接受答案。请告诉我。 – 2011-04-26 11:09:37
针对您认为有用 – V4Vendetta 2011-04-26 11:11:43