Ajax评级问题 [英] Problem with ajax Rating
本文介绍了Ajax评级问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用ajax评级,它工作正常,但是我无法执行onchanged服务器方法
该代码段如下所示
i am using ajax rating it''s working fine but i couldn''t execute the onchanged server method
the code snippet is follows
<cc1:Rating ID="ItemRating" runat="server"
CurrentRating="4"
MaxRating="5"
StarCssClass="ratingStar"
WaitingStarCssClass="savedRatingStar"
FilledStarCssClass="filledRatingStar"
EmptyStarCssClass="emptyRatingStar"
AutoPostBack="true"
Tag="10"
OnChanged="Rating_Changed" />
protected void Rating_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
{
LblRating.Text = "Rated " + DRow[3].ToString() + " by " + DRow[4].ToString() + " People and your Rating is " + e.Value;
}
帮我我需要更改的内容...
help me what i need to change...
推荐答案
您的代码很好.可能在其他地方有问题.尝试此
在.aspx页面上的Page指令中添加AutoEventWireup="true"
并确保在页面中添加了scriptmanager.
希望这会有所帮助.
Your code is just fine.May be somewhere else have the problem.Try this
On .aspx page in Page directive addAutoEventWireup="true"
and make sure you have add scriptmanager in the page.
Hope this will help.
这篇关于Ajax评级问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文