Click here to Skip to main content
16,006,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to update star rating while a button clicked in a webpage, i put the star rating in a update panel and use timer to updating each 2 sec. but it does not work, Could you help me

This is a code i used:
XML
<asp:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Inline">
                                        <ContentTemplate>
                                            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                                                            <asp:Rating ID="Rating1" runat="server" EmptyStarCssClass="emptyRatingStar"
                                        FilledStarCssClass="filledRatingStar" ReadOnly="True" StarCssClass="ratingStar"
                                        WaitingStarCssClass="savedRatingStar"
                    MaxRating="5">
                                    </asp:Rating>
                                               <asp:Timer ID="Timer1" runat="server" Interval="1500" ontick="Timer1_Tick"
Posted
Comments
Sandeep Mewara 31-May-11 9:48am    
You have to be more clear on 'but it does not work' part.

Further, it's a star rating then what is timer for? Why a 2 sec updation?

Edit your question using 'Improve Question' and add the details.

1 solution

http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Rating/Rating.aspx[^]


Do you mean you want to check the current rating every 2 seconds?

So after you submit your rating, you want to be able to refresh automatically every 2 seconds to see to progress of the ratings?

Is that what you mean?

http://msdn.microsoft.com/en-us/library/cc295400.aspx[^]


This link shows how to refresh a data grid, maybe this can help you?
http://sanjevsharma.blogspot.com/2007/10/auto-refresh-update-panel-on-page-using.html[^]

Good luck :)
 
Share this answer
 

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