1. ASP.NET控件到了前台经常会改动ID名称。例如:<asp:Label ID="PaperPrice" runat="server" Text="Label"></asp:Label> ,ID="PaperPrice"到了前台运行的时候变成了id="body_PaperPrice"。<span id="body_PaperPrice">1000.0000</span>
解决办法是把控件里ClientIDMode属性设置为Static:<asp:Label ID="PaperPrice" runat="server" ClientIDMode="Static" Text="Label">ASP.NET简单问题收集
最新推荐文章于 2024-07-13 19:30:00 发布