Please enclose the auto-generated file (in this case  /tmp/apache-temp-aspnet-0/8b21120a/57617.0.vb) where the error is reported.
 
Jambunathan K.

 
On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
Is there someone that it has used mono in order to realize aspx pages with
visual basic?

I think to mistake something because when I try to visualize a simple page aspx
of test (with a button and label) mbas compile with no errors:

[EMAIL PROTECTED] Desktop]# mbas -t:library -r:System.Drawing.dll
-r: System.Web.dll WebForm1.aspx.vb
MonoBASIC Compiler  0.96.2.0 - (c)2002, 2003, 2004, 2005 Rafael Teixeira
--------
THIS IS AN ALPHA SOFTWARE.
--------
Compilation succeeded

but I get this error from the browser:
---------------------------------------------------
Error message: /tmp/apache-temp-aspnet-0/8b21120a/57617.0.vb(66,0) : error
BC30201: _expression_ expected
/tmp/apache-temp-aspnet-0/8b21120a/57617.0.vb(67,45) : error BC30201:
_expression_ expected /tmp/apache-temp-aspnet-0/8b21120a/57617.0.vb(69,16) :
error BC30087: 'End If' is not having a corresponding 'If'
/tmp/apache-temp-aspnet-0/8b21120a/57617.0.vb(72,34) : error BC29999: Parsing
error

File name: /usr/lib/xsp/test/WebForm1.aspx

Source File: /tmp/apache-temp-aspnet-0/8b21120a/57617.0.vb
-------------------------------------------------------

I've mono 1.1.09, fedora core 4 and Apache with mod_mono.

I've copied the WebForm1.aspx file under usr/lib/xsp/test and the WebForm1.dll
under usr/lib/xsp/test/bin.

What I've mistaken?
What I've forgotten?

This is the .vb code (Written with Visual Studio.NET ):
-------------------------------
Public Class WebForm1
   Inherits System.Web.UI.Page

#Region " Codice generato da Progettazione Web Form "

   <System.Diagnostics.DebuggerStepThrough()>
   Private Sub InitializeComponent()
   End Sub
   Protected WithEvents Button1 As System.Web.UI.WebControls.Button
   Protected WithEvents Label1 As System.Web.UI.WebControls.Label
   Protected WithEvents Label2 As System.Web.UI.WebControls.Label

   Private designerPlaceholderDeclaration As System.Object
   Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
  InitializeComponent()
   End Sub

#End Region

   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
  'Inserire qui il codice utente necessario per inizializzare la pagina
   End Sub

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
  Label2.Visible = True
   End Sub
End Class
----------------------------------

This is the .aspx code (Written with Visual Studio.NET):
----------------------------------
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits=" test.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="_javascript_">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 264px; POSITION: absolute;
TOP: 96px" runat="server"
Text="Button"></asp:Button>
<asp:Label id="Label1" style="Z-INDEX: 102; LEFT: 80px; POSITION: absolute; TOP:
96px" runat="server"
Width="152px">Clicca il bottone:</asp:Label>
<asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 184px; POSITION: absolute;
TOP: 184px" runat="server"
Font-Size="Large" Visible="False">Hai cliccato il bottone!</asp:Label>
</form>
</body>
</HTML>
-----------------------------------------

Could anybody help me?
Thank's to all,

Valentina.
_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

Reply via email to