There can be only one 'page' directive.

  • Thread starter Thread starter Poppy
  • Start date Start date
P

Poppy

I opened an asp page in VS.net 2002 and then saved it as an aspx page.

I was prompted if I wanted to create the class file for the page and clicked
yes.

Now when I try and open the page I get the error message :

"There can be only one 'page' directive."

I am sick of these problems.

Whats happening ?
 
Hi,

Your original ASP page most likely had its own "<%@ Page %>" directive at
the top of the page. You should
review the resultant ASPX page, move relevant settings to the new Page
directive from the old one and then remove the old Page directive.
 
Back
Top