Esempio n. 1
0
        protected void btncommentsubmit_Click(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();

            ds = Utilities_Licensing.GetContacttype(Convert.ToInt32(hfdeditid.Value));
            if (ds.Tables[0].Rows.Count > 0)
            {
                hfdcontacttype.Value = ds.Tables[0].Rows[0]["Contact_type"].ToString();
            }
            Utilities_Licensing.UpdateContactComment(Convert.ToInt32(hfdeditid.Value), txtcomment.Text, Session["UID"].ToString(), hfdcontacttype.Value, txtPercentage.Text);
            txtcomment.Text    = "";
            txtPercentage.Text = "";
            hfdeditid.Value    = "0";
            altbox("Record updated successfully.");
        }