将下拉菜单的内容复制到数据库

Copying contents of downdown menu to database

我正在尝试将下拉菜单的内容复制到 SQL 数据库中。但是,当我 运行 以下代码时,我得到了下拉菜单列表的名称。如何显示下拉菜单的值?代码中的 Label4 和 Label5 是下拉菜单。 谢谢

 protected void Button4_Click(object sender, EventArgs e)
    {
        SqlConnection sc = new SqlConnection();
        SqlCommand com = new SqlCommand();
        sc.ConnectionString = ("Data Source=FRMDEVSQL03; Initial Catalog=VisualStudioTest;");
        sc.Open();
        com.Connection = sc;
        com.CommandText = (@"INSERT INTO ticket(person_created, category_id, summary, ticket_status) VALUES ('" + txtName.Text + "',  '" + Label5.Text + "', '" + txtName0.Text + "', '" + Label4.Text + "');");
        com.CommandText = (@"INSERT INTO persons(LanID) VALUES ('" + txtName.Text + "');");
        //com.CommandText = (@"INSERT INTO ticket(person_created, summary) VALUES ('" + txtName.Text + "','" + txtName0.Text + "');");
        com.ExecuteNonQuery();
        sc.Close();
        Response.Redirect(Request.RawUrl);
    }
protected void Button4_Click(object sender, EventArgs e)
{
Insertdata()
}

public void Insertdata()
{
SqlConnection sc = new SqlConnection();
        SqlCommand com = new SqlCommand();
        sc.ConnectionString = ("Data Source=FRMDEVSQL03; Initial Catalog=VisualStudioTest; User ID=Aghosh; Password=SummerClerk");
        sc.Open();
        com.Connection = sc;
        com.CommandText = (@"INSERT INTO ticket(person_created, category_id, summary, ticket_status) VALUES ('" + txtName.Text + "',  '" + Label5.selectedvalue + "', '" + txtName0.Text + "', '" + Label4.selectedvalue + "');");
        com.CommandText = (@"INSERT INTO persons(LanID) VALUES ('" + txtName.Text + "');");
        //com.CommandText = (@"INSERT INTO ticket(person_created, summary) VALUES ('" + txtName.Text + "','" + txtName0.Text + "');");
        com.ExecuteNonQuery();
        sc.Close();
        Response.Redirect(Request.RawUrl);
}