using a ASP sub in an ASPX page?

  • Thread starter Thread starter darrel
  • Start date Start date
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
 
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.
 
Back
Top