hi there, I just download the trial version of goDiagram and trying to give it a try, based on the user’s guide, I create, acutally customized following codes for my web example:
defautl.aspx:
<%@ Page Language=“VB” AutoEventWireup=“false” CodeFile=“Default2.aspx.vb” Inherits=“Default2” %>
<%@ Register Assembly=“Northwoods.GoWeb” Namespace=“Northwoods.GoWeb” TagPrefix=“GoWeb” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
<html xmlns=“XHTML namespace” >
<head runat=“server”>
<title>Untitled Page</title>
</head>
<body>
<form id=“form1” runat=“server”>
<GoWeb:GoView ID=“GoView2” runat=“server” Height=“448px” Width=“552px” DragsRealtime=“True” ImagePage=“~/images/thread_read.gif” />
<button ID=“CopyButton” OnClick=“goAction(‘copy’,‘MyView’)”
type=“button”>Copy</button>
</form>
</body>
</html>
================================================
default.aspx.vb
Imports Northwoods.GoWeb
Partial Class Default2
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Call InitializeDocument()
End Sub
Private Sub InitializeDocument()
’ create two nodes for fun…
Dim node1 As GoBasicNode = New GoBasicNode()
’ specify position, label and color
node1.Location = New Drawing.PointF(100, 100)
node1.Text = “first”
node1.Brush = Drawing.Brushes.Blue
’ add to the document, not to the view
GoView2.Document.Add(node1)
Dim node2 As GoBasicNode = New GoBasicNode()
node2.Location = New Drawing.PointF(200, 100)
node2.Text = “second”
node2.Brush = Drawing.Brushes.Magenta
GoView2.Document.Add(node2)
Dim node3 As GoBasicNode = New GoBasicNode()
node3.Location = New Drawing.PointF(300, 100)
node3.Text = “second”
node3.Brush = Drawing.Brushes.Blue
GoView2.Document.Add(node3)
'support undo/redo
GoView2.Document.UndoManager = New GoUndoManager()
End Sub
End Class
after running from my IE (version 6) , I did not get any node diagrams(elements) within the view, and there is no error raised up
Can anyone give me some idea?
thanks very much,
tony