Доброго времени суток! После добавления в раздел <head> кода, с указанием javaScript (<script type="text/javascript" src="fc_js/FusionCharts.js"></script>), перестаёт работать AJAX!
| Код | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebOLAPApplication._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>(Демонстрационный проект)</title> <style type="text/css">
<!-- FusionCharts code starts --> <script type="text/javascript" src="fc_js/FusionCharts.js"></script> <script type="text/javascript" src="fc_js/FusionChartsDOM.js"></script> <!-- FusionCharts code ends --> .style1 { width: 277px; } </style> </head> <body> <form id="startForm" runat="server" action="Default.aspx"> <div style="text-align:center; background-color:#fdf5e6;"> <table style="text-align: left; border-color: #000000; border-width: 2px; background-color: #fff99e; width: 516px;" cellspacing="0" cellpadding="8" rules="none"> <tr> <td valign="top" class="style1"> Список товаров <br /> <asp:CheckBoxList ID="productsList" runat="server" Height="128px" Width="262px" DataSourceID="DBTableProduct" DataTextField="category" DataValueField="category"> </asp:CheckBoxList> </td> <td valign="top"> Система координат <br /> <asp:DropDownList ID="coordinateSystem" runat="server" Height="18px" Width="172px"> <asp:ListItem Value="1">Месяцы, города</asp:ListItem> <asp:ListItem Value="2">Месяцы, страны</asp:ListItem> <asp:ListItem Value="3">Годы, города</asp:ListItem> <asp:ListItem Value="4">Годы, страны</asp:ListItem> </asp:DropDownList> <br /><br /> <asp:RadioButton ID="count" runat="server" GroupName="resultAnalysis" Text="Количество" Checked="true" /> <br /> <asp:RadioButton ID="price" runat="server" GroupName="resultAnalysis" Text="Прибыль"/> <br /><br /> <asp:Button ID="sumButton" runat="server" OnClick="sumButtom_OnClick" Text="ОК" Width="50%" /> </td> </tr> </table> </div> <asp:ScriptManager ID="ProductScriptManager" runat="server" /> <div style="text-align:center; background-color:#d3d3d3;"> <asp:UpdatePanel runat="server" ID="ResultPanel" UpdateMode="Conditional" ChildrenAsTriggers="false"> <Triggers> <asp:AsyncPostBackTrigger ControlID="sumButton" /> </Triggers> <ContentTemplate> <div id="resultDIV"> <asp:Table ID="resultTable" runat="server" CellSpacing="2" BorderWidth="1"> </asp:Table> </div> </ContentTemplate> </asp:UpdatePanel> </div> <asp:SqlDataSource ID="DBTableProduct" runat="server" ConnectionString="<%$ ConnectionStrings:SalesDBConnectionString %>" SelectCommand="SELECT [category] FROM [Product] ORDER BY [category]"> </asp:SqlDataSource> </form> </body> </html>
|
|