User (Legacy) Posted October 12, 2004 Report Share Posted October 12, 2004 Hello group, when I try to generate a .net component in the aspx page it works fine: <%@ Import Namespace="SoftwareFX.ChartFX"%> <%@ Import Namespace="SoftwareFX.ChartFX.Borders"%> <%@ Import Namespace="SoftwareFX.ChartFX.Internet.Server"%> <%@ Import Namespace="SoftwareFX.ChartFX.Internet.Server.GalleryObj"%> <%@ Import Namespace="System.Drawing"%> <% Dim Chart2 = new SoftwareFX.ChartFX.Internet.Server.Chart(me) Response.Write(Chart2.GetHtmlTag(500,500,"Auto")) %> But when I try the same in the codebehind page it produce alway an image not a .net component: vb code: Dim Chart3 As SoftwareFX.ChartFX.Internet.Server.Chart = New SoftwareFX.ChartFX.Internet.Server.Chart(Me) Chart3.GetHtmlTag(500, 500, "Auto") DataGridPanel.Controls.Add(Chart3) aspx page: <%@ Import Namespace="SoftwareFX.ChartFX"%> <%@ Import Namespace="SoftwareFX.ChartFX.Borders"%> <%@ Import Namespace="SoftwareFX.ChartFX.Internet.Server"%> <%@ Import Namespace="SoftwareFX.ChartFX.Internet.Server.GalleryObj"%> <%@ Import Namespace="System.Drawing"%> <asp:panel id="DataGridPanel" runat="server" Width="100%"></asp:panel> Is there any reason for this? Do I missing something? Thanks for any help Andreas Link to comment Share on other sites More sharing options...
Software FX Posted October 15, 2004 Report Share Posted October 15, 2004 Chart3.GetHtmlTag(500, 500, "Auto") Return a string (the tag) but you are not doing anything with it. So what you see is what is being rendered by the form. You need to assign the HtmlTag property if order for the Render method to output something other than the default (image). -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.