更新更新面板中的星级 [英] updating star rating in update pannel

查看:84
本文介绍了更新更新面板中的星级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网页上单击按钮时更新星级,我将星级添加到更新面板中,并使用计时器每2秒更新一次.但这不起作用,你能帮我吗

这是我使用的代码:

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:

<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"

推荐答案

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


您是说要每2秒检查一次当前额定值吗?

因此,提交评分后,您希望能够每2秒自动刷新一次以查看评分的进度吗?

那是你的意思吗?

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


此链接显示了如何刷新数据网格,也许可以为您提供帮助?
http://sanjevsharma.blogspot.com/2007/10/auto-refresh-update-panel-on-page-using.html [
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 :)


这篇关于更新更新面板中的星级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆