User1052662409 posted
Hi All,
Below is my code to insert some values in database column.
com.Parameters.AddWithValue("@ID_Proof", ddlIdProof.SelectedItem.Text + " (" + txtIDProff_Number.Text + ")");
here I am inserting id proof from a dropdownlist along with id proof number through a text box with ().
when I fetch the string from database to fill the records I am doing like below
ddlIdProof.SelectedIndex = ddlIdProof.Items.IndexOf(ddlIdProof.Items.FindByText(dt.Rows[0]["ID_Proof"].ToString()));
My ID_Proof colum in databse have value like "Adharcard (1234567)". // as I am inserting values by combining the dropdownlist and textbox with ()
How can I show Adharcard in my dropdownlist and 1234567 in my textbox named txtIDProff_Number.
Thanks