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

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

P: n/a
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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <ka**********@attbi.com> wrote in message
news:Os**************@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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.