Rating Control Current Rating To Double Rounding?

Mar 19, 2010

I am trying to convert 22 rating control currentrating values to a double instead of int

I am also displaying in a label control so it is converted to String here is what I have

[Code]....

My display label displays

Rating is x stars out of 5.0 stars

I also record the results in a decimal 1.1 form

I did Convert.ToDouble(rate1.CurrentRating) + Convert.ToDouble(rate2.CurrentRating) .....

but I get a 7 digit after 0 return, how do i round that to a single point?

View 1 Replies


Similar Messages:

AJAX :: Rating Control Average Rating And Postback On Same Rating?

Feb 20, 2011

I have a rating control that shows the average rating of a user supplied posting (think of a forum post that others will rate). So if the average rating for that posting is lets say 3 out of 5 all users will see 3 stars. If someone wants to rate the posting, then they could click lets say 4 stars and I save the rating to the database, re-average the current rating and display the result (which may or may not still be 3 at this point). So far so good. The problem comes in when a user wants to agree that it's 3 stars. Since the rating control currently shows 3 stars, choosing 3 again does not cause a postback. In my case even though the value didnt technically change, I need to capture the users choice so I can average it in and save that users rating. I also modify the UI so that I can show each user of the site what he/she choose as a rating.How can i get the control to let me know that a user choose a star rating even if its the same one the control is currently displaying?

View 3 Replies

AJAX :: How To Use Rating Control For Song Rating In A Musical Website

Jan 29, 2011

I am now doing a project mobile musical website. I have used Ajax Toolkit in my last project and so that I know how to install it and work with it...

I have used CalenderExtender, TextboxWatermark, Password Strength, etc. But I am not familiar with the rating control. How does it work ?

View 1 Replies

AJAX :: Implement Half Star Rating Using Rating Control

Aug 18, 2015

Article [URL] .....

Above article show rating only integer part .

How can i show decimal rating on ajax rating control not any labels?

View 1 Replies

AJAX :: How To Give Half Rating In Rating Control

Oct 11, 2013

I am using AJAX Rating Control.I want half star rating.For Example,If My AVG Rating Count is 3 Then My Stars Wants to be show 3If My AVG Rating Count is 2.5 Then My Stars Wants to be Show 2 1/2 mark i.e., two & half stars.But,it was not showing then also it is showing 3 stars.

View 1 Replies

How To Create A Rating Control In Vs2008

Jan 16, 2010

how do i create a rating control in asp.net in vs2008

View 4 Replies

AJAX :: Rating Control Not Available In Code Behind?

May 4, 2010

I am using a Rating Control in my .ASPX page, but in the Page_Load in my code-behind, for some reason, can't access this control to set some properties of the control. Why is this happening and how can I access it in my code behind? Below is where the rating is set, but when I try to access ratingSystem. , nothing is coming up for me in Intellisense, and if I just type it anyway and compile / build, it gives me errors.

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Always" runat="server">
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>

[Code]....

View 2 Replies

AJAX :: Rating Control Bind With Database

Apr 23, 2010

i am trying to bind rating control from my database. example like. Orkut Answer streangth. i have three option Yes, No and cant say and according database value, i want to show stranth for that option.

View 2 Replies

Ajax Half Star Rating Control?

Mar 18, 2011

Is there a half-star rating control I can use for asp.net/ajax

View 1 Replies

AJAX :: Images Of Rating Control Is Not Displaying?

Mar 17, 2011

I am using a Ajax Rating Control in Web User Control(".ascx").

The Images used for this control is not displaying in the browser, even though the control is getting loaded.

When i use the same code in the Aspx page it is working fine. It is only problem in Web User Control.

View 1 Replies

AJAX :: Rating Control Can't Have Currentrating Higher Than 5?

Jan 21, 2010

I have this:

[Code]....

This code throws an error:CurrentRating must be greater than MaxRatingParameter name: CurrentRatingWhen I change the code to this, it DOES work:

[Code]....

View 2 Replies

AJAX :: Rating Control Not Rendering In Webpage?

Feb 21, 2011

I have placed a ratngs control like the one shown in the tutorial. When I debug the page, I cannot see the ratings control. However I can hover over where the control is, and it will show the ratings tooltip (e.g. 1, 2, 3, 4 and 5), but no stars.

View 2 Replies

AJAX :: How To Use Rating Control Inside DataList

Jan 25, 2014

How to use AJAX Rating Control inside ASP.Net DataList

View 1 Replies

Rating Control In AJAX - Rate Content Only Once After Login

Apr 7, 2010

rating control in AJAX. I want that a person when he visits my site,he is able to rate the content only once after login. I have developed the rating part but the person can rate multiple times.

View 3 Replies

JQuery :: Rating Control In Repeater - Not Duplicating Per Record?

Aug 30, 2010

There is a similar instance of this @ http://forums.asp.net/p/1380776/2919093.aspx#2919093 However I haven't had a response, maybe due to the age of the topic, but the problem is different in the sense I am not using AJAX Rating Control, I am using radio buttons contained in a Div named Ratings, which is picked up by jQuery to style to radio buttons accordingly.The output is that it will put the stars on the first record but anything after just shows origionalunstyled radio buttons.Just thinking off the top of my head, but does anything need to be put in the ItemDataBound event?The jQuery for the stars etc were attained from the link below:http://orkans-tmp.22web.net/star_rating/index.html#demos=&main-menu=0&demo-tabs=3Here is my code:.ASPX:

[Code]....

[Code]....

View 2 Replies

Custom Server Controls :: To Include Rating Control In A Composite Control?

Feb 12, 2010

I am trying to included a rating control in a composite control that renders many different type of controls. I render the controls by overriding the rendercontents so that I can control the layout of the controls. When I try to add the rating control to the output i get a Page cannot be null error. Can someone provide me with the proper way to render a rating control from a composite control and be able to control the layout of the child controls.

View 3 Replies

AJAX :: Error When Rendering A Rating Control In A Composite Control?

Feb 11, 2010

I have a custom control that renders different controls based on a property value. This all works correctly until i try and add a rating control to the control. When i render both controls in the CreateChildControls the control is rendered properly.

However when i try to add layout by overriding the RenderContents method and rendering controls there, an error is generated
Extender controls may not be registered after PreRender.The code shows both methods of creating the controls.

[Code]....

View 2 Replies

AJAX :: Difference Between Rating And RatingExtender Control In Control Toolkit?

Aug 30, 2010

Can you tell the difference between Rating and RatingExtender asp.net ajax Control ?

View 4 Replies

AJAX :: Put Timer On Update Panel Make Rating Control

Mar 3, 2010

when i using timer on update panel it current.rating values = null

Why ?

View 2 Replies

AJAX :: Implement 5 Star Rating Control Using RadioButtons And JQuery?

Feb 5, 2014

How to create 5 Star rating using jQuery and SqlServer.

View 1 Replies

AJAX :: Rating Control Inside UpdatePanel Does Not Refresh The Ratings

May 7, 2015

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="width: 100%; padding-top: 1em">
<img src="Abme/img/rating.png" alt="view" height="25px" width="25px" style="float: left" />

[Code] ....

My ajax rating panel

protected void OnRatingChanged(object sender, RatingEventArgs e) {
SqlConnection con = new SqlConnection(connStr);
SqlCommand cmd = new SqlCommand("Insert into rating(rating,postid) values(@rate,@pi)", con);
cmd.Parameters.AddWithValue("@rate", e.Value);
cmd.Parameters.AddWithValue("@pi", Request.QueryString["ID"]);

[Code] ....

The rating value get inserted to database async but updated rating is not displayed after update. I have to refresh page in order to display updated ratings.

View 1 Replies

C# - Silverlight Toolkit - Unable To See Designer View After Adding Rating Control

May 7, 2010

This is my first silverlight Application. I am trying to use Rating Control from 3.0 Toolkit with VisualStudio 2008 Here are the problems: I am unable to see designer view after adding Rating Control and few other controls. I am not getting any errors or warnings on markup or while compiling. Trying to access Property window for any control is giving me this message " Property Editing not available". Is this the way silverlight was made available with Visual Studio or is there something I am missing here?

View 1 Replies

AJAX :: Star Rating Control Save Rated Values In Database?

Mar 8, 2013

i need a star rating system so that user can rate anything and that rating should be stored in database table.

View 1 Replies

AJAX :: Validate Rating Control To Avoid Multiple Ratings By User

May 7, 2015

I am usingĀ [URL] ....

And my question is the user should not vote again if he/she already voted....

View 1 Replies

Custom Server Controls :: Page Cannot Be Null Error When Renderng Rating Control?

Feb 12, 2010

I have a control that renders different children according to a property value. All works great until I add a rating control in the mix. I get the following:

Page cannot be null. ensure that this operation is being performed in the context of an ASP.NET request.

[Code]....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved