Results 1 to 3 of 3

Thread: There can be only one 'page' directive

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    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 ?

    Parksie

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width