怎么获得DropDownList中的DataValueField(guid类型)
using (OfficeChannel.OfficeChannelDataContext MyCon = new OfficeChannel.OfficeChannelDataContext(ConfigurationManager.ConnectionStrings["OfficeChannelConnectionString_Web"].ConnectionString))
{
var linqTxt = from i in MyCon.Class_BigType
select new
{
BigId=i.classBigID,
BigTxt = i.classBigType
};
DropDownList1.DataSource = linqTxt;
DropDownList1.DataValueField = "BigId";
DropDownList1.DataBind();
protected void Button1_Click(object sender, EventArgs e)
{
//怎么获得DropDownList1.DataValueField = "BigId"的值
}
------解决方案--------------------
int.Parse(DropDownList1.SelectedValue)