ASP to asp.net conversion

  • Thread starter Thread starter Sara
  • Start date Start date
S

Sara

I have the following line in asp which errors when you run
it through the .net complier
<%if session("HighRes") = 1 then %>
<img height="9" src="../images/ProductColTopL.gif"
width="8">
<%end if %>

This comes back with the error
BC30689: Statement cannot appear outside of a method body

I am not sure why this is grumbling any ideas greatly
appreciated
 
I added your code to my aspx page and it compiled fine. Is your page an asp
page? More details would be helpful.
 
Hi Thanks for the reply, The code exists in an aspx page. The page was
an asp page that had the file extension changed
from asp to aspx. I have then been going throughthe code and changing
the syntax where it differs from the old asp syntax. The only thing I
can think of is the code is contained in between the html body and not
as part of a subroutine/function ?

Thanks Sara
 

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

Back
Top