带超链接的 ms 馅饼聊天
我有一个饼图,但我无法在该图表上放置超链接。
我已经放置了一个点击事件来导航到新页面,但这也不起作用..
请建议..谢谢..
我的代码:HTML
<asp:Chart ID="Chart1" runat="server" Height="252px" onclick="Chart1_Click">
<Series>
<asp:Series ChartType="Pie" Name="Series1" >
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
代码后面
protected void Chart1_Click(object sender, ImageMapEventArgs e)
{
Response.Redirect("~/Reports.aspx");
i have a pie chart but i am not able to put a hyperlink on that chart.
i have put an on-click event to navigate to a new page but that also does not work..
please suggest.. thanks..
my code: HTML
<asp:Chart ID="Chart1" runat="server" Height="252px" onclick="Chart1_Click">
<Series>
<asp:Series ChartType="Pie" Name="Series1" >
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
code behind
protected void Chart1_Click(object sender, ImageMapEventArgs e)
{
Response.Redirect("~/Reports.aspx");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以连续设置 Url 值。所以它将是:
You could set the Url value in series. So it will be: