troubleshooting Question

How can I customise the AJAX rating control?

Avatar of aspnet-scotland
aspnet-scotlandFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingAJAXASP.NET
3 Comments1 Solution675 ViewsLast Modified:
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

ASKER CERTIFIED SOLUTION
aspnet-scotland

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros