Hello there,
I'm having issues with this.
I have two dropdownlists that I populated with sqldatasources because of the mass quantity of items. My plan is to select an item from both lists and be able to insert it into the table. Essentially these are going to display a new record for a new
established relationship. This is what I have so far.
This is what I have so far.
int ServerDropDown = Convert.ToInt32(DropDownList1.Text);
int DBDropDown = Convert.ToInt32(DropDownList2.Text);
string InstanceName = TextBox1.Text;
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["NewAppInventoryConnectionString"].ToString());
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "INSERT INTO ServerDB_ (ServerID) VALUES (@ServerID)";
cmd.CommandText = "INSERT INTO ServerDB_ (Dat ...
Go to the complete details ...