Rename a web form, error - missing some other reference?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Rename a web form, error - missing some other reference?

    Hello. In asp.net, when I rename a web form, it changes only the @page
    name and the class name (as expected). It does not, of course, change
    the Inherited reference in the @page. When I change it manually (because
    my page only inherits itself) I get runtime error that it can't find the
    orginal form. The form of course no longer exists in the active
    project...and I don't want it to...

    Any clues as to what reference change I must be missing?

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke Guest

  2. Similar Questions and Discussions

    1. Problem with missing reference to AFormAut 1.0 Library
      Hello, I have an Access 2000 application which saves some reports as a PDF file, inserts a signature field and inserts a user's signature in the...
    2. cast reference missing during projector
      It may be confused because the .dir and .cst have the same name. Andrew
    3. System.DirectoryServices missing reference
      Hi there, here a typical "bloody newbie" question: I am programming a simple Webservice who should add a user to AD. My programming...
    4. Missing CODEGEN values from DataSet Web Reference and Properties are not updated
      I've created a web service that has a project reference to a library that contains a strongly typed dataset. The web service has a function that...
    5. ? About odd missing reference
      Hi all - Access 2002 XP, Windows ME In the process of resolving a default fonts issue, I had to reinstall the Access program from the Office...
  3. #2

    Default Re: Rename a web form, error - missing some other reference?

    Open up the .cs or .vb file for the page and Manually change the class name.
    This should also change the inherits directive. You stated that it changes
    the class when renameing the page.aspx. But are you sure it did not just
    chage the name of the class file. Usually this is the case. It doesn't
    actually change the class name within the .cs/.vb file.




    "Kathy Burke" <kathyburke40@attbi.com> wrote in message
    news:Os6Hue4UDHA.2112@TK2MSFTNGP10.phx.gbl...
    > Hello. In asp.net, when I rename a web form, it changes only the @page
    > name and the class name (as expected). It does not, of course, change
    > the Inherited reference in the @page. When I change it manually (because
    > my page only inherits itself) I get runtime error that it can't find the
    > orginal form. The form of course no longer exists in the active
    > project...and I don't want it to...
    >
    > Any clues as to what reference change I must be missing?
    >
    > Kathy
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Ron Vecchi Guest

  4. #3

    Default Re: Rename a web form, error - missing some other reference?

    Ahhh, I was NOT recompiling...just opening in design! Thanks, Ken.

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139