My ASP code gives an error ‘Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed’ when changed to .aspx
Use a <script runat=server> block instead of the <% %> syntax to define Subs.
Make sure you have proper events associated with the code and have start and end of procedure or function written properly.
Share with