添加DLL引用和Using语句就可以正常访问相应命名空间下的类型了,我C1WebChartTest1 .aspx.cs后台代码是这样写:
using C1.Win.C1Chart;
namespace C1_Web_Demo
{
public partial class C1WebChartTest1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
C1.Win.C1Chart.ValueLabelsCollection VlColl = C1WebChart1.ChartArea.AxisX.ValueLabels;
VlColl.Add(1, "第一季度");
VlColl.Add(2, "第二季度");
VlColl.Add(3, "第三季度");
VlColl.Add(4, "第四季度");
C1WebChart1.ChartArea.AxisX.AnnoMethod = AnnotationMethodEnum.ValueLabels; }
}
} |