C
Carlos Oliveira
For ASP.NET beginners (like me):
I'm trying to migrate "easily" my ASP pages to ASPX pages.
Of course, I found the error below:
BC30289: Statement cannot appear within a method body. End of method
assumed.
This erros occurs becaus my Subs and Functions are between tags <% and
%>. For example:
<%
function Calc(x,y)
Calc = y * x
end function
%>
The simple way to pass this problem was:
Move the code of Subs and Functions between tags below:
<script runat="server" language="vb">
function Calc(x,y)
Calc = y * x
end function
</script>
Regards.
I'm trying to migrate "easily" my ASP pages to ASPX pages.
Of course, I found the error below:
BC30289: Statement cannot appear within a method body. End of method
assumed.
This erros occurs becaus my Subs and Functions are between tags <% and
%>. For example:
<%
function Calc(x,y)
Calc = y * x
end function
%>
The simple way to pass this problem was:
Move the code of Subs and Functions between tags below:
<script runat="server" language="vb">
function Calc(x,y)
Calc = y * x
end function
</script>
Regards.