Click here to Skip to main content
15,908,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added a ajax rating control in page whose scripting code looks like this
ASP.NET
<style type="text/css">
.Star
    {
        background-image: url(Images/Star.gif);
        height: 17px;
        width: 17px;
    }
    .WaitingStar
    {
        background-image: url(Images/WaitingStar.gif);
        height: 17px;
        width: 17px;
    }
    .FilledStar
    {
        background-image: url(Images/FilledStar.gif);
        height: 17px;
        width: 17px;
    }
<asp:Rating ID="Rating2" runat="server" CurrentRating="1" MaxRating="5"   
                StarCssClass="Star" WaitingStarCssClass="WaitingStar" 
EmptyStarCssClass="Star"
    FilledStarCssClass="FilledStar" OnChanged="Rating2_Changed" 
    AutoPostBack="True">
                        </asp:Rating> 


When I run it it is working mean showing me the star images on the page. But when I click on it to rate the stars it does nothing. I debug the code but it is entering in the Rating_Changed event. I'm using Visual Studio 2012, ASP.NET 4.5, and latest ajaxtoolkit 4.0 Kindly tell me why it is not working?
Posted
Comments
Pranav-BiTwiser 1-Mar-14 1:53am    
have you imported .dll ajax files in BIN configuration folder??
mschotamaster 1-Mar-14 4:14am    
not imorted.dll file does not exist in it.
Sampath Lokuge 1-Mar-14 5:24am    
Check whether is there any errors on js file by using chrome dev tools ?
mschotamaster 1-Mar-14 7:16am    
it shows me this error Uncaught TypeError: Cannot read property 'UI' of undefined
Sampath Lokuge 1-Mar-14 7:18am    
Where's that coming ? Put that js code snippet also ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900