Link to home
Start Free TrialLog in
Avatar of aspnet-scotland
aspnet-scotlandFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How can I customise the AJAX rating control?

Hi,

I have developed an asp.net web application using visual studio 2008 that has a listview frontend and an sql server 2005 database backend. I am using a linq to sql datacontext to connect to my backend db.

Within the ItemTemplate of my listview control I have dropped an AJAX rating control (attached code). As you can see from my code I have bound the control to a backend database column. Is there anyway that I can alter the rating control to accept double float data type values, like 3.4, instead of round int values like 3?

Thanks.
<ajaxToolkit:Rating 
                                                            ID="Rating1" 
                                                            runat="server"
                                                            CurrentRating='<%# Eval("trader_overall_rating") %>'
                                                            MaxRating="5"
                                                            StarCssClass="ratingStar"
                                                            WaitingStarCssClass="savedRatingStar"
                                                            FilledStarCssClass="filledRatingStar"
                                                            EmptyStarCssClass="emptyRatingStar" 
                                                            ReadOnly="true">
                                                        </ajaxToolkit:Rating>

Open in new window

Avatar of Amandeep Singh Bhullar
Amandeep Singh Bhullar
Flag of India image

Avatar of aspnet-scotland

ASKER

Unfortunately I have already persued those events with the ajax rating control and hit a brick wall.
ASKER CERTIFIED SOLUTION
Avatar of aspnet-scotland
aspnet-scotland
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial