Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I dont really know why you would want to do this, but you can make the ul <code>runat="server"</code> and add the controls to it like so:</p> <p><strong>HTML</strong>:</p> <pre><code>&lt;ul runat="server" ID="ul_Charts"&gt;&lt;/ul&gt; </code></pre> <p><strong>ServerSide</strong>:</p> <pre><code>ul_Charts.Controls.Add(yourControl); </code></pre> <p><strong>Edit</strong>: You need to programmatically create the chart and insert the chart control into your element like this:</p> <pre><code>// Create a pie chart Chart chart = new Chart(); // Choose chart type and add series info Series series = new Series("Default"); series.ChartType = SeriesChartType.Pie; chart.Series.Add(series); // Create chart legend Legend legend = new Legend(); chart.Legends.Add(legend); // Define the chart area ChartArea chartArea = new ChartArea(); ChartArea3DStyle areaStyle = new ChartArea3DStyle(chartArea); areaStyle.Rotation = 0; chart.ChartAreas.Add(chartArea); Axis yAxis = new Axis(chartArea, AxisName.Y); Axis xAxis = new Axis(chartArea, AxisName.X); // Bind the data to the chart chart.Series["Default"].Points.DataBindXY(xValues, yValues); // Add chart HtmlGenericControl li = new HtmlGenericControl("li"); li.Controls.Add(chart); ul_Charts.Controls.Add(li); </code></pre> <p>This example was found on the <a href="http://forums.asp.net/t/1354675.aspx/1" rel="nofollow">asp.net forums</a> and was tweaked a little to fit your scenario. There are other options but this should at list give an idea of what you need to do.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload