1
我有一個帶有幾個圖表的asp.net頁面。我希望用戶能夠點擊圖表,然後創建一個更大的圖表視圖。我正在考慮使用會話狀態數據在新的asp頁面中填充圖表。但是,這個事件並沒有發射!asp.net圖表Onclick事件處理程序
<div id="dq_chart_container" style="position:absolute; height:300px; top:35px; width:100%;">
<asp:Chart ID="DeviceQueries" runat="server" Width="700px" Height="300px" OnClick="DeviceQueries_Click">
<ChartAreas>
<asp:ChartArea Name="ChartArea1"></asp:ChartArea>
</ChartAreas>
</asp:Chart>
protected void DeviceQueries_Click(object sender, ImageMapEvents e)
{
// check for null sender
// transfer session state data to another page
// event doesn't fire!!!
}