|
-
Oct 29th, 2003, 06:57 AM
#1
Thread Starter
Fanatic Member
There can be only one 'page' directive
I opened an asp page in VS.net 2002 and then saved it as an aspx page,
"mypage.aspx".
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. I have had a look in the folder and there is
only one "mypage.aspx.vb" file.
Whats happening ?
-
Oct 29th, 2003, 07:09 AM
#2
PowerPoster
A Page and a PageDirective are two different things. In your aspx page, make sure at the top their is one Page tag (directive).
Last edited by Lethal; Oct 29th, 2003 at 08:20 AM.
-
Oct 29th, 2003, 11:16 AM
#3
PowerPoster
Looks something like:
<@Page ....>
and is at the top of the page.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|