My ASP code gives an error "Compiler Error Message: BC30289

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 wirtten properly.