using a ASP sub in an ASPX page?

D

darrel

I'm trying to reuse some legacy ASP code we have on an ASPX page. I'm
running into an error where it sees the subroutine declaration as an actual
call:

=============================
: BC30289: Statement cannot appear within a method body. End of method
assumed.

Source Error:

Line 100: sub
getFiles(districtCatalog,directoryPath,sortBy,numberToShow,linkTitle,format,
emptyMessage,propsToShow(),propsToShowTableHeader(),futureUse1,futureUse2,fu
tureUse3,futureUse4,futureUse5)
=============================

is there a way around this, or am I looking at rewriting this entire
subroutine as a .net one? I'd like to avoid that for now, as we need to get
this up and running. I'm hoping this is just a syntax difference. If not,
well, so be it. ;o)

-Darrel
 
C

Chris Jackson

From the looks of the error message, this sub appears to be embedded in
another method, though without viewing the code I can not say for certain.
Try moving it to get it out of the method it is embedded in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top