Jump to content
Software FX Community

chartfx 2005 with asp.net script only pages


User (Legacy)

Recommended Posts

I can successfully create and handle callbacks for dynamically

created charts if a I use a normal code behind file in asp.net.

However, in this instance, I need to use a script only page.

The chart renders fine but the ajax callbacks don´t appear

to trigger the callback request to the page. I´m certain I´m

just not wiring up an event or some other attribute.

Any clues?

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile =

"~/MasterPage.Master" EnableViewState="true" Inherits="System.Web.UI.Page"

%>

<%@ Import Namespace="System" %>

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Configuration" %>

<%@ Import Namespace="System.Collections" %>

<%@ Import Namespace="System.Diagnostics" %>

<%@ Import Namespace="System.IO" %>

<%@ Import Namespace="System.Web" %>

<%@ Import Namespace="System.Web.Security" %>

<%@ Import Namespace="System.Web.UI" %>

<%@ Import Namespace="System.Web.UI.WebControls" %>

<%@ Import Namespace="System.Web.UI.WebControls.WebParts" %>

<%@ Import Namespace="System.Web.UI.HtmlControls" %>

<%@ Import Namespace="ChartFX.WebForms" %>

<%@ Import Namespace="ChartFX.WebForms.DataProviders" %>

<script Language="C#" runat="server">

protected void Page_Load(object sender, EventArgs e)

{

try

{

// code removed. Calls static methods and passes

// in page attributes. Code to dynamically create chart

// and add it to one of the tables below is contained here in

// those static methods.

}

catch (Exception ex)

{

WebUtility.HandleError(ex);

}

}

</script>

<asp:Content ID="Content4" ContentPlaceHolderID="MiddleContent"

Runat="Server">

<asp:Table ID="TopSurveyBar" Width="100%" runat="server" BorderWidth="0"

CellSpacing="0" CellPadding="0" CssClass="TopSurveyMenuStyle">

<asp:TableRow>

<asp:TableCell HorizontalAlign="Left">

<asp:Table ID="TopSurveyMenuBar" Width="560px" runat="server"

BorderWidth="0" CellSpacing="0" CellPadding="0"></asp:Table></asp:TableCell>

<asp:TableCell HorizontalAlign="Right">

<asp:Table ID="TopSurveyProgressBar" Width="365px" runat="server"

BorderWidth="0" CellSpacing="0" CellPadding="0"></asp:Table></asp:TableCell>

</asp:TableRow>

</asp:Table>

<asp:Table ID="TableDataContainer" Width="100%" runat="server"

BorderWidth="0" BackColor="#FFFFFF" BorderColor="red" CellSpacing="0"

CellPadding="0"></asp:Table>

</asp:Content>

Link to comment
Share on other sites

I haven´t nailed down the specifics just yet but as soon

as I removed their control from the page, the chartfx

callbacks worked properly.

"Robbe Morris" <info@eggheadcafe.com> wrote in message

news:ftJgy8FJHHA.252@webserver3.softwarefx.com...

>I can successfully create and handle callbacks for dynamically

> created charts if a I use a normal code behind file in asp.net.

> However, in this instance, I need to use a script only page.

>

> The chart renders fine but the ajax callbacks don´t appear

> to trigger the callback request to the page. I´m certain I´m

> just not wiring up an event or some other attribute.

>

> Any clues?

> <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile =

> "~/MasterPage.Master" EnableViewState="true" Inherits="System.Web.UI.Page"

> %>

>

> <%@ Import Namespace="System" %>

>

> <%@ Import Namespace="System.Data" %>

>

> <%@ Import Namespace="System.Configuration" %>

>

> <%@ Import Namespace="System.Collections" %>

>

> <%@ Import Namespace="System.Diagnostics" %>

>

> <%@ Import Namespace="System.IO" %>

>

> <%@ Import Namespace="System.Web" %>

>

> <%@ Import Namespace="System.Web.Security" %>

>

> <%@ Import Namespace="System.Web.UI" %>

>

> <%@ Import Namespace="System.Web.UI.WebControls" %>

>

> <%@ Import Namespace="System.Web.UI.WebControls.WebParts" %>

>

> <%@ Import Namespace="System.Web.UI.HtmlControls" %>

>

> <%@ Import Namespace="ChartFX.WebForms" %>

>

> <%@ Import Namespace="ChartFX.WebForms.DataProviders" %>

>

> <script Language="C#" runat="server">

>

> protected void Page_Load(object sender, EventArgs e)

>

> {

>

> try

>

> {

>

> // code removed. Calls static methods and passes

>

> // in page attributes. Code to dynamically create chart

>

> // and add it to one of the tables below is contained here in

>

> // those static methods.

>

> }

>

> catch (Exception ex)

>

> {

>

> WebUtility.HandleError(ex);

>

> }

>

> }

>

> </script>

>

>

>

> <asp:Content ID="Content4" ContentPlaceHolderID="MiddleContent"

> Runat="Server">

>

>

> <asp:Table ID="TopSurveyBar" Width="100%" runat="server" BorderWidth="0"

> CellSpacing="0" CellPadding="0" CssClass="TopSurveyMenuStyle">

>

> <asp:TableRow>

>

> <asp:TableCell HorizontalAlign="Left">

>

> <asp:Table ID="TopSurveyMenuBar" Width="560px" runat="server"

> BorderWidth="0" CellSpacing="0"

> CellPadding="0"></asp:Table></asp:TableCell>

>

> <asp:TableCell HorizontalAlign="Right">

>

> <asp:Table ID="TopSurveyProgressBar" Width="365px" runat="server"

> BorderWidth="0" CellSpacing="0"

> CellPadding="0"></asp:Table></asp:TableCell>

>

> </asp:TableRow>

>

> </asp:Table>

>

>

> <asp:Table ID="TableDataContainer" Width="100%" runat="server"

> BorderWidth="0" BackColor="#FFFFFF" BorderColor="red" CellSpacing="0"

> CellPadding="0"></asp:Table>

>

>

> </asp:Content>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...