error BC30001!! very strange!! please help me!

F

franz

hello,
it's hard to me explain you this kind of error i have from .net.

i developed a script in asp.net with VS.NET.
in VS.NET (code behind) it's work perfect.
now i copied the code in an aspx page (code front) (because i need it
like that)
and it gives me back a really strange error!

Errore di compilazione
BC30001: Istruzione non valida in uno spazio dei nomi.
Riga 1083: #End ExternalSource
Riga 1084:
Riga 1085: Public Sub New()
Riga 1086: MyBase.New
Riga 1087: Dim dependencies As System.Collections.ArrayList

but this code is something that it builds for his self.
this is not my code, the file indicated is
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\root\fdc19776\e0e5a0be\g75gk_lx.0.vb

i can't understand wich error is this and what do i have to do to fix
it.

please help me
francesco
 
G

Guest

Franz,
I don't see the script tags used on the code front? Please send more
information
Thanks
DWS
 
G

Guest

Thats it Franz,
In order for the code infront to work the code blocks need to be inside
script tags.
Below I've made a form with a button. See the click event is inside a
script tag with runat=server

Good Luck
DWS


<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Button1.Text = "hellow world"
End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Text="Button" /></div>
</form>
</body>
</html>
 
F

franz

thanks dws for ur help!!
i fixed the problem.

was a really stupid point!!
copying the code from VS to the inline code, i copied the line End
Class and this did that strange error back.

thanks
franz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top