protected void btninsert_Click(object sender, EventArgs e) { Hashtable data = new Hashtable(); data.Add("client_id", cbclientname.SelectedValue); data.Add("asset_id", cbaptno.SelectedValue); data.Add("name", txtname.Text); data.Add("phoneno", txtphoneno.Text); data.Add("emailid", txtemailid.Text ); data.Add("desg", txtdesg.Text); data.Add("desc", txtdesc.Text); int id; bll insclientcont = new bll(); id=insclientcont.insclientcontactdet(data); lblretccid.Text = "Client Contact Details Inserted & Client Contact ID is " + id.ToString(); }