Example #1
0
        protected void ButtonSubmit_Click(object sender, EventArgs e)
        {
            int userId = Convert.ToInt32(Session["UserId"]);
            int rate = Convert.ToInt32(HiddenFieldRate.Value);
            string message = TextBoxFeedback.Text;
            Classes.Feedback f = new Classes.Feedback();
            int status = f.feedbackAdd(userId, rate, message);

            if (status == 0)
            {
                //unsuccessful
            }
            else if (status == 1)
            {
                //successfull
                Response.Redirect("~/Done/FeedbackSubmited");
            }
        }
Example #2
0
        protected void ButtonSubmit_Click(object sender, EventArgs e)
        {
            int    userId  = Convert.ToInt32(Session["UserId"]);
            int    rate    = Convert.ToInt32(HiddenFieldRate.Value);
            string message = TextBoxFeedback.Text;

            Classes.Feedback f = new Classes.Feedback();
            int status         = f.feedbackAdd(userId, rate, message);

            if (status == 0)
            {
                //unsuccessful
            }
            else if (status == 1)
            {
                //successfull
                Response.Redirect("~/Done/FeedbackSubmited");
            }
        }