There can be only one 'page' directive.

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 ?
 
D

Dmitriy Lapshin [C# / .NET MVP]

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.
 

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

Top