Setting a dynamic size for an Asp:Chart control
问题 I am trying to make my chart width and height dynamic but I can't get it to work. So far what I've tried: I've set the Chart inside an Asp:Panel and given the panel the desired percentual values. <asp:Panel ID="Panel1" runat="server" Width="90%" Height="40%"> <asp:Chart ID="Chart1" runat="server" CssClass="chart"> <Series> <asp:Series Name="Series1"></asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1"></asp:ChartArea> </ChartAreas> </asp:Chart> </asp:Panel> Then I try to