Задайте вопросЗадайте вопрос
 

ОтвеченоGraphs will not render unless the CS is deployed with the ASPX

  • 30 июня 2009 г. 13:52bronder Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     С кодом

    The ASPX that includes the Charting control doesn not render anything unless I deploy the CS with it.  I'm not really sure why, but if I watched the errors I got a pretty standard "resource not round," while trying to render the aspx.  The resource in question was the codefile for the aspx.  Once I deploy the CS with the ASPX the ASPX renders the graph and everything works as intended.

    As a work-a-round, I decided to just put all the CS inline with the ASPX, but this is not my optimal solution.

    Has anyone else seen this in thier work?

    Thanks,

    Scott

    <%@ Page Language="C#" CodeFile="BudgetChart.aspx.cs" Inherits="BudgetChart"  EnableSessionState="ReadOnly" %>
    <%-- Uncomment for intellisense <html><body>--%>
        <asp:chart id="ChartBudget" runat="server" borderlinewidth="0" ImageType="Jpeg" AntiAliasing="All" rendertype="BinaryStreaming">
          <ChartAreas>
            <asp:ChartArea Name="ChartAreaPercentage">
              <AxisX Enabled="False" IsMarginVisible="false" />
              <AxisY Enabled="False" IsMarginVisible="false" />
            </asp:ChartArea>
          </ChartAreas>
        </asp:chart>
    <%-- Uncomment for intellisense</body></html>--%>
    
    • Измененоbronder 30 июня 2009 г. 13:58Including aspx
    •  

Ответы

Все ответы