N
NRGeti
I am learning ASP.NET using the book, "ASP.NET for Dummies". In the chapter
introducing writing your own functions, I cannot get the example to run when
I call it with LOCALHOST. It produces the IE cannot find page error because
it doesn't know how to compile the function.
I can execute .ASPX examples just fine using LOCALHOST.
What else do I need to do set up on my PC to be able to compile these
functions?
Here is the example code:
<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">
Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function
</script>
<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>
introducing writing your own functions, I cannot get the example to run when
I call it with LOCALHOST. It produces the IE cannot find page error because
it doesn't know how to compile the function.
I can execute .ASPX examples just fine using LOCALHOST.
What else do I need to do set up on my PC to be able to compile these
functions?
Here is the example code:
<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">
Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function
</script>
<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>