buddu
Sep 20th, 2002, 03:54 AM
I have Simple Problem with Declaring Variables. This is my Program.
<%@ Page Language="VB" %>
<script runat="server">
Dim stm as String
stm="prasad"
</script>
<html>
<head>
</head>
<body>
<form runat="server">
</form>
</body>
</html>
I got the Following Error
Compiler Error Message: BC30188: Declaration expected.
Source Error:
Line 2: <script runat="server">
Line 3: Dim stm as String
Line 4: stm="prasad"
<%@ Page Language="VB" %>
<script runat="server">
Dim stm as String
stm="prasad"
</script>
<html>
<head>
</head>
<body>
<form runat="server">
</form>
</body>
</html>
I got the Following Error
Compiler Error Message: BC30188: Declaration expected.
Source Error:
Line 2: <script runat="server">
Line 3: Dim stm as String
Line 4: stm="prasad"