Profile Picture

protected System.Web.UI.WebControls

Posted By Mike Holmes 3 Years Ago
Author
Message
Mike Holmes
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 11, Visits: 45
Am getting the error 'nChartControl1' does not exist in the current content

I normally add the line protected System.Web.UI.WebControls following by the field type, how can I do this from Nevron?

Tags
Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
Hi Mike,

There are three Nevron chart controls and they reside in the following namespaces:

Nevron.Chart.WinForm
Nevron.Chart.Wfp
Nevron.Chart.ThinWeb
Nevron.Chart.WebForm
most likely you use the NChartControl defined in the Nevron.Chart.WebForm namespace, so you need to import it or reference the chart control type with its fully qualified name - Nevron.Chart.WebForm.NChartControl.

We hope this helps - let us know if you have any questions or meet any problems.


Best Regards,
Nevron Support Team



Mike Holmes
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 11, Visits: 45
Thanks, have add the extra references, but still cant access the chart control.

ASPX page
<table id="Table1" style="width: 745px; vertical-align: top;" summary="Example layout table">
<tr>
  <td id="Td1" class="ImageCell" style="width: 420px; vertical-align: top;">
   <!-- Chart control placeholder BEGIN -->
   <ncwc:NChartControl id="nChartControl1" runat="server" Width="420px" Height="320px">
   </ncwc:NChartControl>
   <!-- Chart control placeholder END -->
  </td>
  <td id="exampleVDelimiterCell" class="DelimiterCell" rowspan="2"> </td>
  <td id="exampleConfigurationCell" class="ControlsPanel" rowspan="2" style="width: 325px;">
  </td>
</tr>
</table>

c# Page cant see the control nChartControl1




Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
Hi Mike,

Please make sure to include:
<%@ Register TagPrefix="ncwc" Namespace="Nevron.Chart.WebForm" Assembly="Nevron.Chart.WebForm" %>

at the top of the aspx page. Let us know if the problem persists.

Best Regards,
Nevron Support Team



Mike Holmes
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 11, Visits: 45
Yes, already there, see complete ASPX file

<%@ Page language="c#" Codebehind="datareports.aspx.cs" AutoEventWireup="True" Inherits="ciconi_results.datareports" %>
<%@ Register TagPrefix="uc1" TagName="_Header" Src="header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="_Footer" Src="footer.ascx" %>
<%@ Register TagPrefix="ncwc" Namespace="Nevron.Chart.WebForm" Assembly="Nevron.Chart.WebForm" %>
<%@ Register TagPrefix="uc2" TagName="_ChartControl" Src="ChartControl.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head runat="server">
   <title>Ciconi Results</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
<meta name="CODE_LANGUAGE" content="C#" />
<meta name="vs_defaultClientScript" content="JavaScript" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
</head>
  <body>
<uc1:_header id=_Header1 runat="server"></uc1:_header>
   <div id="main">
    <div class="container">
      <div class="row">
       <div class="twelve columns">
<h2>Data Reports</h2>
        <hr />
   <form id="Form1" method="post" runat="server">

          <div class="content">
          <div id="bodytext">
           <div class="row top30">
           <div class="column grid_8">

<table id="Table1" style="width: 745px; vertical-align: top;" summary="Example layout table">
<tr>
  <td id="Td1" class="ImageCell" style="width: 420px; vertical-align: top;">
   <!-- Chart control placeholder BEGIN -->
   <ncwc:NChartControl id="nChartControl1" runat="server" Width="420px" Height="320px">
   </ncwc:NChartControl>
   <!-- Chart control placeholder END -->
  </td>
  <td id="exampleVDelimiterCell" class="DelimiterCell" rowspan="2"> </td>
  <td id="exampleConfigurationCell" class="ControlsPanel" rowspan="2" style="width: 325px;">
  </td>
</tr>
</table>

            </div>
           </div>
           </div>
          </div>
      </form>
       </div>
      </div>
    </div>
   </div>
   <uc1:_Footer id=_footer runat="server"></uc1:_Footer>
  </body>
</html>






Similar Topics


Reading This Topic