当前位置:编程学习 > C#/ASP.NET >>

javascript 報這個invalidOperationException錯,請問怎麼解決?

javascript 報這個invalidOperationException錯,請問怎麼解決?

<asp:ScriptManager ID="ScriptManager1" runat="server">
                                                                </asp:ScriptManager>
                                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                    <ContentTemplate>
                                                                <cc1:Rating runat="server" ID="Rating1"
                                                                    MaxRating="5"
                                                                    CurrentRating="1"
                                                                    CssClass="ratingStar"
                                                                    StarCssClass="ratingItem"
                                                                    WaitingStarCssClass="Saved"
                                                                    FilledStarCssClass="Filled"
                                                                    EmptyStarCssClass="Empty" AutoPostBack="True">
                                                                </cc1:Rating>
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>


保存的時候就報錯 --------------------编程问答-------------------- 虽然 ...但是....
invalidOperationException
查下这种异常可能出现的因素,再结合你的代码 --------------------编程问答-------------------- LZ是不是在使用了updatepanel控件的情况还,还在页面上使用了其它的JS脚本程序?
如果是这样,楼主可以参考下
http://blog.csdn.net/High_Mount/archive/2007/04/21/1573583.aspx


--------------------编程问答-------------------- 再调试环境下。打开菜单Debug,然后再Windows中应该有个脚本调试窗口,你可以再那个里看到从asp代码生产的html代码
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,