What is missing in the following code? the example are from "Sams Teach
yourself ASP.NET in 21 days" (kode 3.8) Anyone who knows about a correction
list or other resources for this book?
I would be greatfull for any help


<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script runat="server">
sub Page_Load(obj as object, e as eventargs)
MultiplyNumbers(8,9)

MultiplyNumbers(4,12)

MultiplyNumbers(348,23)
end sub

sub MultiplyNumbers(intA as integer, intB as integer)
Response.Write(intA * intB & "<br>")
end sub
</script>

<html>
<head>
<title>Untitled Document</title>
</head>
<body>


</body>
</html>

Re: Missing declaration??? by Jason

Jason
Thu Jan 20 21:13:05 CST 2005

Hi there,

what's the exact error message and line number?


--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.
"NOVICE.NET" <NOVICENET@discussions.microsoft.com> wrote in message
news:EB57EDB2-6C68-455A-833F-38850C4C012B@microsoft.com...
> What is missing in the following code? the example are from "Sams Teach
> yourself ASP.NET in 21 days" (kode 3.8) Anyone who knows about a
> correction
> list or other resources for this book?
> I would be greatfull for any help
>
>
> <%@ Page Language="VB" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
> %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <script runat="server">
> sub Page_Load(obj as object, e as eventargs)
> MultiplyNumbers(8,9)
>
> MultiplyNumbers(4,12)
>
> MultiplyNumbers(348,23)
> end sub
>
> sub MultiplyNumbers(intA as integer, intB as integer)
> Response.Write(intA * intB & "<br>")
> end sub
> </script>
>
> <html>
> <head>
> <title>Untitled Document</title>
> </head>
> <body>
>
>
> </body>
> </html>
>



Re: Missing declaration??? by Kristofer

Kristofer
Fri Jan 21 02:04:09 CST 2005

Hello,

I tested your code and i cannot find anything wrong with it. It produces
the expected result.


--
Regards,
Kristofer Gafvert
www.gafvert.info - My articles and help
www.ilopia.com


NOVICE.NET wrote:

> What is missing in the following code? the example are from "Sams Teach
> yourself ASP.NET in 21 days" (kode 3.8) Anyone who knows about a
correction
> list or other resources for this book?
> I would be greatfull for any help
>
>
> <%@ Page Language="VB" ContentType="text/html"
ResponseEncoding="iso-8859-1"
> %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <script runat="server">
> sub Page_Load(obj as object, e as eventargs)
> MultiplyNumbers(8,9)
>
> MultiplyNumbers(4,12)
>
> MultiplyNumbers(348,23)
> end sub
>
> sub MultiplyNumbers(intA as integer, intB as integer)
> Response.Write(intA * intB & "<br>")
> end sub
> </script>
>
> <html>
> <head>
> <title>Untitled Document</title>
> </head>
> <body>
>
>
> </body>
> </html>

Re: Missing declaration??? by NOVICENET

NOVICENET
Fri Jan 21 12:37:05 CST 2005

Hi
Thanks for your reply, the exact error message and line number is as follows:
Compiler Error Message: BC30451: Name 'MultiplyNumbers' is not declared.
Source Error: Line: 5

Line 3: <script runat="server">
Line 4: sub Page_Load(obj as object, e as eventargs)
Line 5: MultiplyNumbers(8,9)
Line 6:
Line 7: MultiplyNumbers(4,12)

"Jason Brown [MSFT]" wrote:

> Hi there,
>
> what's the exact error message and line number?
>
>
> --
> Jason Brown
> Microsoft GTSC, IIS
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "NOVICE.NET" <NOVICENET@discussions.microsoft.com> wrote in message
> news:EB57EDB2-6C68-455A-833F-38850C4C012B@microsoft.com...
> > What is missing in the following code? the example are from "Sams Teach
> > yourself ASP.NET in 21 days" (kode 3.8) Anyone who knows about a
> > correction
> > list or other resources for this book?
> > I would be greatfull for any help
> >
> >
> > <%@ Page Language="VB" ContentType="text/html"
> > ResponseEncoding="iso-8859-1"
> > %>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > "http://www.w3.org/TR/html4/loose.dtd">
> > <script runat="server">
> > sub Page_Load(obj as object, e as eventargs)
> > MultiplyNumbers(8,9)
> >
> > MultiplyNumbers(4,12)
> >
> > MultiplyNumbers(348,23)
> > end sub
> >
> > sub MultiplyNumbers(intA as integer, intB as integer)
> > Response.Write(intA * intB & "<br>")
> > end sub
> > </script>
> >
> > <html>
> > <head>
> > <title>Untitled Document</title>
> > </head>
> > <body>
> >
> >
> > </body>
> > </html>
> >
>
>
>