Пример #1
0
        /// <summary>
        /// code to give feedback...
        /// </summary>

        void feedback()
        {
            try
            {
                fdbck.Name      = txtname.Value;
                fdbck.Email     = txtemail.Value;
                fdbck.ContactNo = Convert.ToInt64(txtnum.Value);
                fdbck.Msg       = txtmsg.Value;
                fdbck.Rating    = Convert.ToChar(rbl.SelectedValue);
                int Issucessfull = InsertionLayer.feedback(fdbck);
                if (Issucessfull == 1)
                {
                    lblmsg.Text = "We Appreciate for Your Proper Feedback...";
                    clearsection();
                }
                else
                {
                    lblmsg.Text = "Technical Error ! Please try After Sometime";
                }
            }
            catch (Exception ex)
            {
                lblmsg.Text = ex.Message;
            }
        }