Sign in to follow this  
Arindam

I have a problem with my code VB.Net.

Recommended Posts

Please help me.

I don't know which is the problem in my code. Please helpme.

This is code.

 

<%

@ Import Namespace="System"%>

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

<%

@ Import Namespace="System.ComponentModel"%>

<%

@ Import Namespace="System.Data"%>

<%

@ Import Namespace="System.Drawing"%>

<%

@ Import Namespace="System.Web"%>

<%

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

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

<%

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

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

<%

@ Import Namespace="System.Text"%>

<%

@ Import Namespace="InfoSoftGlobal" %>

<

HTML>

<

HEAD>

<TITLE>

FusionCharts Free - Simple Column 3D Chart using dataXML method

</TITLE>

<style type="text/css">

<!

--

body {

font-family: Arial, Helvetica, sans-serif;

font-size: 12px;

}

-->

</style>

</

HEAD>

<

BODY>

<

CENTER>

<%

Dim strXML As String = ""

strXML = strXML &

"<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%25' tickValueDistance='20' showValue='1'>"

strXML = strXML &

"<colorRange>"

strXML = strXML & "<color minValue='0' maxValue='75' code='FF654F'/>"

strXML = strXML & "<color minValue='75' maxValue='90' code='F6BD0F'/>"

strXML = strXML & "<color minValue='90' maxValue='100' code='8BBA00'/>"

strXML = strXML & "</colorRange>"

strXML = strXML & "<dials>"

strXML = strXML & "<dial value='92' rearExtension='10'/>"

strXML = strXML & "</dials>"

strXML = strXML & "</chart>"

InfoSoftGlobal.FusionCharts.RenderChartHTML("../FusionCharts/AngularGauge.swf", "HOLA", strXML, "myNext", "600", "300", False)

%>

<

BR><BR>

<

a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>

<

BR><H5 ><a href="index.aspx">« Back to list of examples</a></h5>

</

CENTER>

</

BODY>

</

HTML>

Share this post


Link to post
Share on other sites

Hi Kevin Urra,

 I went through your program. Will you please do this way, I think it will work for you. please use asp:Literal control

<%

@ Page Language="VB" %>

<%

@ Import Namespace="InfoSoftGlobal" %>

<

script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

Dim strXML As String = ""

strXML = strXML &

"<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%25' tickValueDistance='20' showValue='1'>"

strXML = strXML &

"<colorRange>"

strXML = strXML &

"<color minValue='0' maxValue='75' code='FF654F'/>"

strXML = strXML &

"<color minValue='75' maxValue='90' code='F6BD0F'/>"

strXML = strXML &

"<color minValue='90' maxValue='100' code='8BBA00'/>"

strXML = strXML &

"</colorRange>"

strXML = strXML &

"<dials>"

strXML = strXML &

"<dial value='92' rearExtension='10'/>"

strXML = strXML &

"</dials>"

strXML = strXML &

"</chart>"

Literal1.Text = FusionCharts.RenderChartHTML(

"../FusionCharts/AngularGauge.swf", "", strXML, "myNext", "600", "300", False)

End Sub

</

script>

<

html>

<

head>

<

title>FusionCharts Free - Simple Column 3D Chart using dataXML method</title>

<

style type="text/css">

<!

--

body

{

font-family: Arial, Helvetica, sans-serif;

font-size: 12px;

}

-->

</

style>

</

head>

<

body>

<

center>

<form id="form1" runat="server">

<div>

<%

'FusionCharts Will Render with in Literal Control %>

<asp:Literal ID="Literal1" runat="server"></asp:Literal>

</div>

</form>

<

br><br>

<

a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>

<

br><h5><a href="index.aspx">« Back to list of examples</a></h5>

</

center>

</

body>

</

html>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this