MS Chart的Response.redirect

| 我有一个图表控件。 现在我想要的功能是,如果用户单击图表,它将带它到一个新页面,同时我需要向该页面发送一个值。 我尝试了这个,但点击甚至不起作用..
   protected void Chart1_Click(object sender, ImageMapEventArgs e)
    {           
        if (Label1.Text != \"1\")
        {
            Response.Redirect(\"~/Admin/Page2Chart.aspx?node=\" + Label1.Text);
        }
        else
        {
            Response.Redirect(\"~/Admin/Page2Chart.aspx\");
        }

    }
我知道我们可以在HTML中放置一个URL,但是我不能在其中放置一个条件。 任何帮助将不胜感激。 谢谢
<asp:Chart ID=\"Chart4\" Height=\"202px\" Width=\"360px\" runat=\"server\" 
                            onclick=\"Chart4_Click\" >
                            <Series>

                                <asp:Series ChartType=\"Pie\" Name=\"Series1\" Font=\"Microsoft Sans Serif, 10pt\" >
                                </asp:Series>
                            </Series>
                            <ChartAreas>
                                <asp:ChartArea Name=\"ChartArea1\">
                                </asp:ChartArea>
                            </ChartAreas>
                            <Legends>
                <asp:Legend Enabled=\"true\" TableStyle=\"Tall\" IsTextAutoFit=\"False\" Name=\"Default\" BackColor=\"Transparent\" Font=\"Trebuchet MS, 8.25pt, style=Bold\">
                </asp:Legend>
            </Legends>
        </asp:Chart>
    
已邀请:
您可以发布图表的设计视图吗?
chart4.Series[\"seriesname\"].Url = \"somechartorpage.aspx?\"+label1.text;              
chart4.Series[\"seriesname\"].Points[\"name\"].Url= \"Detailedchart.aspx\"; 
    

要回复问题请先登录注册