aspnet-scotland
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.
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>
ASKER
Unfortunately I have already persued those events with the ajax rating control and hit a brick wall.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://programming.top54u.com/post/ASP-Net-AJAX-Star-Rating-Extender-Control.aspx