Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How do I add .aspx to a ContainerHow do I add .aspx to a Container
Previous
 
Next
New Post
3/11/2006 6:37 PM
 
Hello everyone,

How would I add this aspx webpage to a container?

<%@ Page Language="VB" Description="dotnetCHARTING Component"%>
<%@ Register TagPrefix="dotnet"  Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>


<script runat="server">


Function getRandomData() As SeriesCollection
   Dim SC As New SeriesCollection()
   Dim myR As New Random()
   Dim a As Integer
   For a = 0 To 3
      Dim s As New Series()
      s.Name = "Series " & a
      Dim b As Integer
      For b = 0 To 5
         Dim e As New Element()
         e.Name = "E " & b
         e.YValue = myR.Next(50)
         s.Elements.Add(e)
      Next b
      SC.Add(s)
   Next a
   ' Set Different Colors for our Series
   SC(0).DefaultElement.Color = Color.FromArgb(49, 255, 49)
   SC(1).DefaultElement.Color = Color.FromArgb(255, 255, 0)
   SC(2).DefaultElement.Color = Color.FromArgb(255, 99, 49)
   SC(3).DefaultElement.Color = Color.FromArgb(0, 156, 255)
   Return SC
End Function 'getRandomData



Sub Page_Load(sender As [Object], e As EventArgs)
   ' Set the title.
   Chart.Title = "My Chart"
  
   ' Turn 3D on.
   Chart.Use3D = True
  
  
   ' Set the x axis label
   Chart.ChartArea.XAxis.Label.Text = "X Axis Label"
  
   ' Set the y axis label
   Chart.ChartArea.YAxis.Label.Text = "Y Axis Label"
  
   ' Set the directory where the images will be stored.
   Chart.TempDirectory = "temp"
  
   ' Set the bar shading effect
   Chart.ShadingEffect = True
  
   ' Set the chart size.
   Chart.Size = "600x350"
  
   ' Add the random data.
   Chart.SeriesCollection.Add(getRandomData())
End Sub 'Page_Load

</script>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Gallery Sample</title></head>
<body>
<div style="text-align:center">
 <dotnet:Chart id="Chart"  runat="server"/>
</div>
</body>
</html>


Thanks
Scott
 
New Post
3/11/2006 10:48 PM
 
Couldnt you just add a new page and put an ifram on it?
 
New Post
3/12/2006 12:28 AM
 
Hello txghia58,

Thank you for taking the time to replay to my question. I thought IFrame is used to display a webpage from another website. What I am looking to do is display charts in a DNN Container. The aspx webpage is in my file listing under Portal Root Directiory.

Anyone have any ideas?

Thanks
Scott
 
New Post
3/12/2006 12:57 AM
 
Ok Thanks for the info txghia58,

I think I got it working :)

Thanks
Scott
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How do I add .aspx to a ContainerHow do I add .aspx to a Container


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out