Inheritance: System.EventArgs
Example #1
0
    protected void Rating_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        //get the new rating
        int value = Int32.Parse(e.Value);

        if (UserRating.Value == 0)
        {
            //initially the rating is 0
            Rating.Sum += value;
            Rating.Count++;
        }
        else
        {
            //remove old value
            Rating.Sum -= UserRating.Value;
            //add new value
            Rating.Sum += value;
        }
        //update the user rating
        UserRating.Value = value;
        db.SubmitChanges();

        //rebind the data
        Bind();
    }
Example #2
0
    //protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    //{
    //    Rating r = sender as Rating;
    //    int id = Convert.ToInt32(r.Tag);
    //    // objBLL.UpdateRating(Convert.ToInt32(e.Value),id)

    //    GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent;
    //    int index = gvRow.RowIndex;
    //    Label L = (Label)GridView2.Rows[index].FindControl("LblID");

    //    // Rating rt = (Rating)GridView1.Rows[index].FindControl("Rating1");
    //    int j = Convert.ToInt32(L.Text);

    //    //AjaxControlToolkit.Rating myRating =    (AjaxControlToolkit.Rating)sender;
    //    // regular expression which will help identifying row number:

    //    // update the record based on the recodrd id


    //    string strConnString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
    //    SqlConnection con = new SqlConnection(strConnString);
    //    con.Open();
    //    SqlCommand cmd = new SqlCommand("update tbfiles SET Rating=@Rating where Id='" + j + "'", con);
    //    cmd.Parameters.AddWithValue("@Rating", SqlDbType.Int).Value = e.Value;
    //    cmd.ExecuteNonQuery();
    //    con.Close();
    //    bindgrid();
    //}

    protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        Rating r  = sender as Rating;
        int    id = Convert.ToInt32(r.Tag);
        // objBLL.UpdateRating(Convert.ToInt32(e.Value),id)

        GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent;
        int         index = gvRow.RowIndex;
        Label       L     = (Label)GridView2.Rows[index].FindControl("LblID");

        // Rating rt = (Rating)GridView1.Rows[index].FindControl("Rating1");
        int j = Convert.ToInt32(L.Text);

        //AjaxControlToolkit.Rating myRating =    (AjaxControlToolkit.Rating)sender;
        // regular expression which will help identifying row number:

        // update the record based on the recodrd id


        string        strConnString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
        SqlConnection con           = new SqlConnection(strConnString);

        con.Open();
        //SqlCommand cmd = new SqlCommand("update tbfiles SET Rating=@Rating where Id='" + j + "'", con);
        SqlCommand cmd = new SqlCommand("insert into UserRatings(Id,Rating) values(@Id,@Rating)", con);

        cmd.Parameters.AddWithValue("@Id", SqlDbType.Int).Value     = j;
        cmd.Parameters.AddWithValue("@Rating", SqlDbType.Int).Value = e.Value;

        cmd.ExecuteNonQuery();
        con.Close();
        bindgrid();
    }
 protected void Rating5_Changed(object sender, RatingEventArgs e)
 {
     if (e.Value == "2")
     {
         Rating5.CurrentRating = 10;
     }
 }
    protected void Rating6_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        DataTable dt = ratingbal.getrating(mpidval, 6, guId, Convert.ToInt16(e.Value));

        //Rating1.CurrentRating = Convert.ToInt32(dt.Rows[0]["rating"]);
        LBLrating6.Text = dt.Rows[0]["avgRAte"].ToString();
    }
Example #5
0
        protected void rateTutor_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
        {
            //Here we implement the search logic
            IRatingManagementService rms = new RatingManagementService();

            Result <object> result;
            HiddenField     hdnSessionStudent;

            hdnSessionStudent = ((Rating)sender).NamingContainer.FindControl("hdnSessionStudent") as HiddenField;
            result            = rms.RateTutor(CurrentUser.ID, int.Parse(hdnSessionStudent.Value), double.Parse(e.Value));
            if (!string.IsNullOrEmpty(e.Value))
            {
                ((Rating)sender).CurrentRating = int.Parse(e.Value);
                ((Rating)sender).ReadOnly      = true;
            }
            if (!result.isSuccess)
            {
                ShowMessage(result.message);
                e.CallbackResult = result.message;
            }
            else
            {
                //ShowMessage(result.message);
            }
            //upEnrolledSessions.Update();
        }
Example #6
0
 protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     int   rIndex    = ((sender as Rating).NamingContainer as GridViewRow).RowIndex;
     int   LectureId = Convert.ToInt32(grdFeedAll.DataKeys[rIndex].Value);
     float d         = float.Parse(e.Value);
     bool  ds        = proxy.createFeedAnswer(studentId, LectureId, float.Parse(e.Value));
 }
    protected void Rt1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        Snlg_DBParameter[] prms = new Snlg_DBParameter[4];
        prms[0] = new Snlg_DBParameter("@MakId", SqlDbType.Int, Request.QueryString["makid"]);
        prms[1] = new Snlg_DBParameter("@Puan", SqlDbType.TinyInt, e.Value);

        prms[2] = new Snlg_DBParameter("@YazanId", SqlDbType.Int);
        prms[3] = new Snlg_DBParameter("@IP", SqlDbType.VarChar, 15);
        if (string.IsNullOrEmpty(Snlg_MemberInfo.s_UserId.ToString()))
        {//üye değilse
            prms[2].Deger = DBNull.Value;
            prms[3].Deger = Request.ServerVariables["REMOTE_ADDR"];
        }
        else
        {//üye ise
            prms[2].Deger = Snlg_MemberInfo.s_UserId;
            prms[3].Deger = DBNull.Value;
        }

        try
        {
            vt.SorguCalistir("snlg_V1.zsp_makale_PuanEkle", CommandType.StoredProcedure, prms);
            Snlg_Hata.ziyaretci.HataGosterBasarili(GetGlobalResourceObject("default", "makale_detay_ascx_hata04").ToString(), false);
        }
        catch (Exception exc) { Snlg_Hata.ziyaretci.ExceptionLogla(exc); }
    }
Example #8
0
        public void RaiseCallbackEvent(string eventArgument)
        {
            RatingEventArgs args = new RatingEventArgs(eventArgument);

            this.OnChanged(args);
            _returnFromEvent = args.CallbackResult;
        }
Example #9
0
 protected void elemRating_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     // Actualize CurrentRating properties
     elemRating.CurrentRating = ValidationHelper.GetInteger(e.Value, 0);
     this.GetCurrentRating();
     // Throw the rating event
     this.OnRating();
 }
Example #10
0
        protected virtual void OnClick(RatingEventArgs e)
        {
            var eventHandler = (RatingEventHandler)base.Events[Rating.EventClick];

            if (eventHandler != null)
            {
                eventHandler(this, e);
            }
        }
 protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     /*con.Open();
      * SqlCommand cmd = new SqlCommand("insert into RatingDetails(Rate)values(@Rating)",con);
      * cmd.Parameters.AddWithValue("@Rating", ratingControl.CurrentRating);
      * cmd.ExecuteNonQuery();
      * con.Close();*/
     Label1.Text = Rating1.CurrentRating.ToString();
 }
Example #12
0
        protected virtual void OnChanged(RatingEventArgs e)
        {
            RatingEventHandler eventHandler = (RatingEventHandler)base.Events[Rating.EventChange];

            if (eventHandler != null)
            {
                eventHandler(this, e);
            }
        }
Example #13
0
    protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        con.Open();
        SqlCommand cmd = new SqlCommand("INSERT INTO UserRatings(Rating) VALUES (@Rating)", con);

        cmd.Parameters.AddWithValue("@Rating", SqlDbType.Int).Value = Rating1.CurrentRating;
        cmd.ExecuteNonQuery();
        con.Close();
        BindRatings();
    }
Example #14
0
    protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        try
        {
            int    rat    = 0;
            String q      = e.Value.ToString();
            int    ratval = Convert.ToInt32(q);

            DataTable dt = this.GetData("SELECT ISNULL(AVG(hrating), 0) AverageRating  FROM rating_db where hname='" + Label2.Text + "'");
            rat = Convert.ToInt32(dt.Rows[0]["AverageRating"]);

            if (rat == 0)
            {
                con.open_connection();
                string     s1 = "insert into rating_db(hname,hrating,email) values('" + Label2.Text + "','" + Label1.Text + "','" + Session["emailID"].ToString() + "')";
                SqlCommand cm = new SqlCommand(s1, con.con_pass());
                cm.ExecuteNonQuery();

                con.close_connection();
                Response.Write("<script>alert('Product Rating Given Successfully') </script>");
                Response.Redirect("project_Details.aspx?pid=" + Request.QueryString["pid"]);
            }
            else if (ratval == rat + 1 || ratval == rat - 1)
            {
                con.open_connection();
                string     s1 = "insert into rating_db(hname,hrating,email) values('" + Label2.Text + "','" + Label1.Text + "','" + Session["emailID"].ToString() + "')";
                SqlCommand cm = new SqlCommand(s1, con.con_pass());
                cm.ExecuteNonQuery();

                con.close_connection();
                Response.Write("<script>alert('Product Rating Given Successfully') </script>");
                Response.Redirect("project_Details.aspx?pid=" + Request.QueryString["pid"]);
            }
            else
            {
                lblmsg.Text = "Fake";
                string msg = "Rating Issue";
                con.open_connection();
                con2.open_connection();
                string     s_fake_real = "insert into product_review values('" + txtname.Text + "','" + msg + "','" + lblmsg.Text + "')";
                SqlCommand sk          = new SqlCommand(s_fake_real, con2.con_pass());
                sk.ExecuteNonQuery();
                con2.close_connection();
                string     s1  = "insert into feedback(hname,hdes,rdate,fuser,status) values('" + Label1.Text + "',' Rating Issue ','" + System.DateTime.Now.ToString() + "','" + Session["emailID"] + "','Negative')";
                SqlCommand cmd = new SqlCommand(s1, con.con_pass());
                cmd.ExecuteNonQuery();
                con.close_connection();
            }
        }
        catch (Exception ex)
        {
            ex.ToString();
        }
    }
Example #15
0
 protected void rtBook_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     if (int.Parse(e.Value) < 2)
     {
         lblWarning.Text = "友情提示:您给予的级别太低,有可能影响此牛奶的销售量!";
     }
     else
     {
         lblWarning.Text = "";
     }
 }
Example #16
0
        /// <summary>
        /// Raises the postback event
        /// </summary>
        /// <param name="eventArgument" type="String">Event argument</param>
        public void RaisePostBackEvent(string eventArgument)
        {
            var args = new RatingEventArgs(eventArgument);

            OnClick(args);

            var value = Convert.ToInt32(args.Value.Replace(";", ""));

            if (value != this.CurrentRating)
            {
                OnChanged(args);
            }
        }
    protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        Label1.Text = e.Value.ToString();

        con.open_connection();
        string     s1 = "insert into rating_db(hname,hrating,email) values('" + Label2.Text + "','" + Label1.Text + "','" + Session["emailID"].ToString() + "')";
        SqlCommand cm = new SqlCommand(s1, con.con_pass());

        cm.ExecuteNonQuery();

        con.close_connection();
        Response.Write("<script>alert('Hotel Rating Give Successfully') </script>");
        Response.Redirect("project_Details.aspx?pid=" + Request.QueryString["pid"]);
    }
 protected void productRating_Changed(object sender, RatingEventArgs e)
 {
     if (NopContext.Current.User == null || NopContext.Current.User.IsGuest)
     {
         lblProductRatingResult.Text = GetLocaleResourceString("Products.OnlyRegisteredUsersCanRating");
         e.CallbackResult = GetLocaleResourceString("Products.OnlyRegisteredUsersCanRating");
     }
     else
     {
         ProductManager.SetProductRating(this.ProductID, int.Parse(e.Value));
         lblProductRatingResult.Text = GetLocaleResourceString("Products.RatingWillBeUpdatedVerySoon");
         e.CallbackResult = "Update done. Value = " + e.Value;
     }
 }
Example #19
0
        /// <summary>
        /// Raises the callback event
        /// </summary>
        /// <param name="eventArgument" type="String">Event argument</param>
        public void RaiseCallbackEvent(string eventArgument)
        {
            var args = new RatingEventArgs(eventArgument);

            OnClick(args);

            var value = Convert.ToInt32(args.Value.Replace(";", ""));

            if (value != this.CurrentRating)
            {
                OnChanged(args);
            }

            _returnFromEvent = args.CallbackResult;
        }
Example #20
0
        protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
        {
            String _id    = lb_id.Text;
            String _start = txt_startdate.Text;
            String _end   = txt_enddate.Text;

            if (_id == "" || _start == "" || _end == "")
            {
                Rating1.CurrentRating = 0;
            }
            else
            {
                loadRating(_id, _start, _end);
            }
            loadBugHunter(_id);
        }
Example #21
0
    //Sembla ser que no funciona correctament
    public void rating_Changed(object sender, AjaxControlToolkit.RatingEventArgs ev)
    {
        String nomSerie = LabelNomSerie.Text;

        if (!justRated)
        {
            //Obtindre num de ".filled" per tal de saber el rating del usuari
            userRating = int.Parse(ev.Value.ToString());
            serie      = ORM.buscarSerie(nomSerie);

            rating.CurrentRating = userRating;
            rating.DataBind();

            justRated = true;
        }
    }
    protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        //DataListItem dlltem = (DataListItem)(((Control)sender).NamingContainer);
        //int i = dlltem.ItemIndex;



        //SqlConnection conn = new SqlConnection("Data Source=mywedding.cqb8null5yfs.ap-northeast-1.rds.amazonaws.com;Initial Catalog=myWedding;User Id=iiiSouth9402;Password=marcoLeonPower9402");
        ////SqlConnection conn = new SqlConnection("Data Source=LEEYINGCHENG-PC\\SQLEXPRESS;Initial Catalog=myWedding;User Id=sa;Password=as");
        //conn.Open();

        //if (Rating1.CurrentRating == 0)
        //{
        //    SqlCommand cmd = new SqlCommand("INSERT INTO dbo.tlikeServices (fIdMember,fIdServices,flikeStar) VALUES (@fIdMember,@fIdServices,@flikeStar)", conn);

        //    tMember mb = Session[CDKey.LOGINUSER] as tMember;

        //    cmd.Parameters.AddWithValue("@fIdMember", mb.fIdMember);
        //    cmd.Parameters.AddWithValue("@fIdServices", (DataList1.Items[i].FindControl("Label19") as Label).Text);
        //    cmd.Parameters.AddWithValue("@flikeStar", 1);

        //    cmd.ExecuteNonQuery();


        //    Response.Redirect(Request.Url.ToString());
        //}
        //else
        //{
        //    SqlCommand cmd = new SqlCommand("DELETE FROM dbo.tlikeServices (fIdMember,fIdServices,flikeStar) VALUES (@fIdMember,@fIdServices,@flikeStar)", conn);

        //    tMember mb = Session[CDKey.LOGINUSER] as tMember;

        //    cmd.Parameters.AddWithValue("@fIdMember", mb.fIdMember);
        //    cmd.Parameters.AddWithValue("@fIdServices", (DataList1.Items[i].FindControl("Label19") as Label).Text);
        //    cmd.Parameters.AddWithValue("@flikeStar", 1);

        //    cmd.ExecuteNonQuery();


        //    Response.Redirect(Request.Url.ToString());



        //}
        //conn.Close();
        //Response.Write("<script>alert('" + (DataList1.Items[i].FindControl("Label19") as Label).Text + "')</script>");
    }
        protected void productRating_Changed(object sender, RatingEventArgs e)
        {
            if (NopContext.Current.User == null && this.CustomerService.AllowAnonymousUsersToSetProductRatings)
                this.CustomerService.CreateAnonymousUser();

            if (NopContext.Current.User == null || (NopContext.Current.User.IsGuest && !this.CustomerService.AllowAnonymousUsersToSetProductRatings))
            {
                lblProductRatingResult.Text = GetLocaleResourceString("Products.OnlyRegisteredUsersCanRating");
                e.CallbackResult = GetLocaleResourceString("Products.OnlyRegisteredUsersCanRating");
            }
            else
            {
                this.ProductService.SetProductRating(this.ProductId, int.Parse(e.Value));
                lblProductRatingResult.Text = GetLocaleResourceString("Products.RatingWillBeUpdatedVerySoon");
                e.CallbackResult = "Update done. Value = " + e.Value;
            }
        }
Example #24
0
        RatingEventArgs HandleEvent(string eventArgument)
        {
            var eventData = ParseEventData(eventArgument);
            var fromUI    = Convert.ToInt32(eventData[0]) > 0;

            var args = new RatingEventArgs(eventData[1], eventData[2]);

            if (fromUI)
            {
                OnClick(args);
            }

            var value = Convert.ToInt32(args.Value);

            if (value != CurrentRating)
            {
                OnChanged(args);
            }

            return(args);
        }
 protected void elemRating_Changed(object sender, RatingEventArgs e)
 {
     // Actualize CurrentRating properties
     elemRating.CurrentRating = ValidationHelper.GetInteger(e.Value, 0);
     GetCurrentRating();
     // Throw the rating event
     OnRating();
 }
Example #26
0
 public void RaiseCallbackEvent(string eventArgument)
 {
     RatingEventArgs args = new RatingEventArgs(eventArgument);
     this.OnChanged(args);
     _returnFromEvent = args.CallbackResult;
 }
Example #27
0
 public void RaisePostBackEvent(string eventArgument)
 {
     RatingEventArgs args = new RatingEventArgs(eventArgument);
     this.OnChanged(args);
 }
Example #28
0
 protected void Rating_Set(object sender, RatingEventArgs args)
 {
     ViewState[RATINGKEY] = args.Value;
 }
Example #29
0
 protected virtual void OnChanged(RatingEventArgs e)
 {
     RatingEventHandler eventHandler = (RatingEventHandler)base.Events[Rating.EventChange];
     if (eventHandler != null)
     {
         eventHandler(this, e);
     }
 }
 protected void Rating_Changed(object sender, RatingEventArgs e)
 {
     int rating = 0;
     rating = Int32.Parse(e.Value);
     Session["review_rating"] = rating;
 }
Example #31
0
 protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
 }
Example #32
0
 protected void Rrating_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     string VideoID = (HttpContext.Current.Session["_rt"] != null ? HttpContext.Current.Session["_rt"].ToString() : "0");
 }
Example #33
0
 protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     RatingValue = Convert.ToInt32(e.Value);
 }
 /// <summary>
 /// Handles the Changed event of the RatingControl control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="AjaxControlToolkit.RatingEventArgs"/> instance containing the event data.</param>
 private void RatingControl_Changed(object sender, RatingEventArgs e)
 {
     Rating.AddRating(
         this.LocationId,
         this.UserId == -1 ? null : (int?)this.UserId,
         int.Parse(e.Value, CultureInfo.InvariantCulture),
         DataProvider.ModuleQualifier);
     this.RatingControl.ReadOnly = true;
 }
 protected void Rating_Changed1(object sender, RatingEventArgs e)
 {
 }
Example #36
0
 /// <summary>
 /// Run custom code when the user rates something and then return a custom string
 /// to the JavaScript client
 /// </summary>
 /// <param name="sender">Rating control</param>
 /// <param name="e">RatingEventArgs</param>
 protected void ThaiRating_Changed(object sender, RatingEventArgs e)
 {
     Thread.Sleep(400);
     e.CallbackResult = "Update done. Value = " + e.Value + " Tag = " + e.Tag;
 }
Example #37
0
 protected void Rating2_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     Session["v"] = e.Value;
 }
Example #38
0
        /// <summary>
        /// Raises the postback event
        /// </summary>
        /// <param name="eventArgument" type="String">Event argument</param>
        public void RaisePostBackEvent(string eventArgument)
        {
            var args = new RatingEventArgs(eventArgument);

            OnClick(args);

            var value = Convert.ToInt32(args.Value.Replace(";", ""));
            if(value != this.CurrentRating)
                OnChanged(args);
        }
Example #39
0
 protected void ThaiRating_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     Thread.Sleep(400);
     e.CallbackResult = "Update done. Value = " + e.Value + " Tag = " + e.Tag;
 }
Example #40
0
        /// <summary>
        /// Handles the Changed event of the rating control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="AjaxControlToolkit.RatingEventArgs"/> instance containing the event data.</param>
        protected void rating_Changed(object sender, RatingEventArgs e)
        {
            try
            {
                AccionPagina = enumAcciones.Responder;
                Respuesta respuestaPuntual = new Respuesta();

                respuestaPuntual.pregunta.textoPregunta = ((Panel)sender).ID;

                string[] aux = ((Panel)sender).ID.Split('_');
                int auxIdPregunta = 0;
                if (aux.Length == 2)
                    int.TryParse(aux[1], out auxIdPregunta);

                Respuesta miRespuesta = ListaRespuestas.Find(p => p.pregunta.textoPregunta == ((Panel)sender).ID);
                if (miRespuesta != null)
                {
                    ListaRespuestas.Find(p => p.pregunta.textoPregunta == ((Panel)sender).ID).respuestaSeleccion = Convert.ToInt16(e.Value);
                }
                else
                {
                    respuestaPuntual = respuestaSkeleton;

                    respuestaPuntual.pregunta.idPregunta = auxIdPregunta;
                    respuestaPuntual.pregunta.textoPregunta = ((Panel)sender).ID;
                    respuestaPuntual.respuestaSeleccion = Convert.ToInt16(e.Value);
                    ListaRespuestas.Add(respuestaPuntual);
                }
            }
            catch (Exception ex)
            {
                Master.ManageExceptions(ex);
            }
        }
Example #41
0
 protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     e.CallbackResult = "Update done value=" + e.Value + "Tag=" + e.Tag;
 }
 protected void Rating4_Changed(object sender, RatingEventArgs e)
 {
     e.CallbackResult = ((Rating)sender).ID + ";" + e.Value + ";" + e.Tag;
 }
Example #43
0
        /// <summary>
        /// Raises the callback event
        /// </summary>
        /// <param name="eventArgument" type="String">Event argument</param>
        public void RaiseCallbackEvent(string eventArgument)
        {
            var args = new RatingEventArgs(eventArgument);

            OnClick(args);

            var value = Convert.ToInt32(args.Value.Replace(";", ""));
            if(value != this.CurrentRating)
                OnChanged(args);

            _returnFromEvent = args.CallbackResult;
        }
 protected void Rating1_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
 {
     dropRate.Value = e.Value.ToString();
 }
Example #45
0
 protected virtual void OnClick(RatingEventArgs e)
 {
     var eventHandler = (RatingEventHandler)base.Events[Rating.EventClick];
     if(eventHandler != null) {
         eventHandler(this, e);
     }
 }
Example #46
0
 protected void Rating_Changed(object sender, RatingEventArgs e)
 {
     _presenter.SaveRating(sender, e, SystemObjectID, SystemObjectRecordID);
 }
Example #47
0
    protected void Rating1_Click(object sender, AjaxControlToolkit.RatingEventArgs e)
    {
        string rate = e.Value;

        Session["rate"] = rate;
    }
Example #48
0
        public void RaisePostBackEvent(string eventArgument)
        {
            RatingEventArgs args = new RatingEventArgs(eventArgument);

            this.OnChanged(args);
        }