Duke

Duke

  • NA
  • 1
  • 0

Dropdownlist

Aug 12 2010 5:48 AM
Hi im trying to store selected value from a dropdown list on a web application but it keeps storing the 1st value each time.
Please help, below is a snippet of my code:
if (chkActive.Checked == true)
            {
                active = 1;
            }
            else
            {
                active = 0;
            }
            string acctype = ddlAccType.SelectedValue.ToString();
            string title = ddlTitle.SelectedValue.ToString();
            string bank = ddlBank.SelectedValue.ToString();

            MWDataManager.DataManager addPer = new MWDataManager.DataManager();
            addPer.ConnectionString = ConfigurationSettings.AppSettings["ConnectionString"];
            addPer.SqlStatement = "spAddPersonel";

Answers (1)