I am in progress changing code. Can anyone help? I am forced to migrate old code because of upgrades. Thanks!
<% @Page Language="VB" Explicit="True" %>
<%
dim sMoYr
call Main()
Sub Main()
If Request.ServerVariables("REQUEST_METHOD") = "POST" then
call Header()
call Results()
Else
sMoYr = cstr(Request.QueryString("MoYr"))
call Header()
call Search()
End If
End Sub
sub Header()
%>
throws this error:
Compilation Error
Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed. Source Error:
Line 4: call Main()
Line 5:
Line 6: Sub Main() Line 7: If Request.ServerVariables("REQUEST_METHOD") = "POST" then
Line 8: call Header()
soulsinger
0 Points
1 Post
ASP to asp.net conversion issues
Nov 20, 2012 07:46 PM|LINK
I am in progress changing code. Can anyone help? I am forced to migrate old code because of upgrades. Thanks!
<% @Page Language="VB" Explicit="True" %>
<%
dim sMoYr
call Main()
Sub Main()
If Request.ServerVariables("REQUEST_METHOD") = "POST" then
call Header()
call Results()
Else
sMoYr = cstr(Request.QueryString("MoYr"))
call Header()
call Search()
End If
End Sub
sub Header()
%>
throws this error:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.
Source Error:
Line 4: call Main() Line 5: Line 6: Sub Main() Line 7: If Request.ServerVariables("REQUEST_METHOD") = "POST" then Line 8: call Header()