By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,296 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,296 IT Pros & Developers. It's quick & easy.

There can be only one 'page' directive.

P: n/a
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 ?

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Poppy" <pa**********@NOSPAMthemedialounge.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
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 ?


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.