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

问题描述

如何通过Javascript更新asp.net ajax评级控制值。我的页面中有多个评级控件。所以我无法访问它们

How can I update asp.net ajax rating control value by Javascript. There are multiple rating controls in my page. So I can not have access to them by

function SetParentReview(appid) {
var ratingValue = $find("rt_" + id).get_Rating();
 $find("rcGrid_" + appid).set_Rating(Number(2));
}



这两行都无法访问控件。在我的gridview中,它如下所示。


these both lines can not access the control. In my gridview it is as follows.

<ajax:Rating  ID='rcGrid_' BehaviorID='rcGrid_<%# Eval("AppId") %>' CurrentRating='<%# Eval("avgRating") %>'  runat="server" StarCssClass="ratingEmpty" WaitingStarCssClass="ratingSaved" EmptyStarCssClass="ratingEmpty" FilledStarCssClass="ratingFilled">



如何在jav中访问这些控件后更新ascript。


also how can i update after accessing these controls in javascript.

推荐答案




这两行都无法访问控件。在我的gridview中,它如下所示。


these both lines can not access the control. In my gridview it is as follows.

<ajax:Rating  ID='rcGrid_' BehaviorID='rcGrid_<%# Eval("AppId") %>' CurrentRating='<%# Eval("avgRating") %>'  runat="server" StarCssClass="ratingEmpty" WaitingStarCssClass="ratingSaved" EmptyStarCssClass="ratingEmpty" FilledStarCssClass="ratingFilled">



如何在jav中访问这些控件后更新ascript。


also how can i update after accessing these controls in javascript.



这篇关于ajax中的asp评级控制更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 03:10