Rating Changed事件未使用网格视图asp.net Web表单触发

时间:2017-04-19 16:16:49

标签: javascript c# jquery asp.net twitter-bootstrap

评级更改事件未使用网格视图asp.net web表格触发,在网格视图中我使用了评级控制但是当我点击任何评级时事件没有触发,我使用自举设计。

以下是我的代码。

  <div class="eval-rating">
  <h6 class="pull-left">Your Rating
           <br>
            <a class="eval-help" data-toggle="modal" href="#innovation">Help Text?</a></h6>
              <div class="ratin-main">
           <%-- <img src="rating.png">--%>
            <asp:TemplateField>
            <itemtemplate>
             <ajax:Rating ID="Rating1" runat="server" AutoPostBack="true" CurrentRating='<%# DataBinder.Eval(Container, "DataItem.Innovation") %>' StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" OnChanged="Rating1_Changed" Tag="10" BehaviorID="RatingBehavior1"></ajax:Rating>
             <asp:CustomValidator ID="CustomValidator1" runat="server" ValidationGroup="Score"
             ErrorMessage="Rate Innovation" Display="Static" ClientValidationFunction="CustomValidator1_ClientValidate" ForeColor="red"></asp:CustomValidator>
             </itemtemplate>
             </asp:TemplateField>
             <h6>
            <asp:Label ID="lblR1NotRated" CssClass="rating_Not" runat="server" Text="Not Rated"
            Visible="false"></asp:Label>
            <asp:Label ID="lblR1Rated" CssClass="rating" runat="server" Visible="false"></asp:Label></h6>
   </div>
   </div>

我还检查使用按f12获取任何错误并得到以下错误。

custom.js:11 Uncaught TypeError: $(...).mixItUp is not a function
http://localhost:50658/fonts/fontawesome-webfont.woff2?v=4.7.0 Failed    to load resource: the server responded with a status of 404 (Not Found)
http://localhost:50658/imgs/inner-about.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
browserLink:37 Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: TemplateField

请帮助我,为什么Rating1_Changed没有解雇。

我的java脚本代码:

  <script type="text/javascript">
     function CustomValidator1_ClientValidate(source, args) {


         if ($find('RatingBehavior1').get_Rating() != 0) // rating is not zero
         {
             args.IsValid = true;
         }
         else {
             args.IsValid = false;
         }
     }
   </script>

0 个答案:

没有答案