コード例 #1
0
    protected void btninsert_Click(object sender, EventArgs e)
    {
        Hashtable data = new Hashtable();
        data.Add ("client_id",cbclientnme .SelectedValue );
        data.Add ("control",Label5 .Text );
        data.Add ("value",txtdefvalues .Text );
        data.Add ("dbname",txtmethodname .Text );
        data.Add ("label",txtlabelname .Text );
        data.Add ("description",txtdesc.Text  );
        int id;
        bll clins = new bll();

        id= clins.inscontrol(data);
        lblretid.Text = "Control Details Successfully Inserted & Control ID is " + id.ToString();
    }