Jump to content
Software FX Community

DustinW

Members
  • Posts

    3
  • Joined

  • Last visited

DustinW's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I need to place a link on each xaxis label that redirects to another page and to do that I put this code in: protected void Chart1_DataBound(object sender, EventArgs e) { Chart1.AxisX.Sections.Clear(); for (int i = 1; i < 14; i++) { AxisSection asec = new AxisSection(i, i, Color.Transparent); asec.Text = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(Chart1.AxisX.Labels); asec.Link.Url = "charttraffic.aspx?lbl=" + Chart1.AxisX.Labels + "&type=" + ddl_renttype.SelectedValue; Chart1.AxisX.Sections.Add(asec); } } but when I set the text for the AxisSection it appears on the LegendBox and I have not found any way to remove it, other than remove the asec.Text section but in doing that the tooltip just says "From 1 to 1". Is there anyway to remove the sections from the LegendBox or another way of changing the Tooltip Text?
  2. I installed ChartFX on a test machine, did the updates and now I'm continually getting this error no matter what settings I select. Did I miss an update somewhere? Any help would be appricated. Here is the error: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).] System.Web.UI.ControlCollection.Add(Control child) +11013946 ChartFX.WebForms.ad.a() +322 ChartFX.WebForms.ad.b(Control A_0) +184 ChartFX.WebForms.n.a() +117 ChartFX.WebForms.Chart.OnPreRender(EventArgs e) +68 System.Web.UI.Control.PreRenderRecursiveInternal() +108 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
×
×
  • Create New...