Dec 30, 2007

Compiler Error Message: BC30289

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 Delimeter syntax to define Subs.Make sure you have proper events associated with the code and have start and end of procedure or function wirtten properly.