Results 1 to 2 of 2

Thread: please help... what is wrong with my code?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

    please help... what is wrong with my code?

    this is an example provided by teeChart v5.0.4 (written in C#)
    i have used a C# to VB Translator and the code it came up doesn't work?

    what is wrong? please help...

    PHP Code:
    Imports System
    Imports System
    .Collections
    Imports System
    .ComponentModel
    Imports System
    .Data
    Imports System
    .Drawing
    Imports System
    .IO
    Imports Steema
    .TeeChart
    Imports System
    .Web
    Imports System
    .Web.SessionState
    Imports System
    .Web.UI
    Imports System
    .Web.UI.WebControls
    Imports System
    .Web.UI.HtmlControls

    Public Class ShowSeries
        Inherits System
    .Web.UI.Page
        
    Protected Image1 As System.Web.UI.WebControls.Image

    #Region " Web Form Designer Generated Code "

        
    Private Sub InitializeComponent()
            
    Me.Load += New System.EventHandler(Me.Page_Load)

        
    End Sub
        
    Protected Overrides Sub OnInit(ByVal e As EventArgs)
            
    InitializeComponent()
            
    MyBase.OnInit(e)
        
    End Sub

    #End Region

        
    Private Sub Page_Load(ByVal sender As System.ObjectByVal e As System.EventArgsHandles MyBase.Load
            Dim webServer 
    As String Session("hostname")
            
    Dim seriesType As String
            Dim viewType 
    As String
            seriesType 
    "Line"
            
    viewType "False"
            
    Image1.ImageUrl "http://" webServer "/ReportClient/Reg/ShowSeries.aspx?seriestype=" seriesType "&view=" viewType
        End Sub

    End 
    Class 
    thanks, tom

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    That is ASP.NET code, not VB.NET code.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width