Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Renaming aspx pages


Message #1 by "Matt Dittman" <mddittman@h...> on Tue, 28 May 2002 18:02:03
Why does it seem that you can't rename an ASP.NET page in Visual Studio?  
When I attempt to rename it, I do a find/replace within the .aspx and .cs 
file and replace all the old names with the new one.  The page renders 
fine, but none of the server controls work!  I have a hard time believing 
that Microsoft wants you to rebuild all your pages from scratch... Is 
there a trick to getting this to work?
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 28 May 2002 13:15:21 -0400
Matt,

	I rename my pages on a regular basis (I owe this to my poor
write-things-down-first ability).  The problems you're encountering probably
have something to do with namespaces changing, the Inherits attribute the
the @Page directive needs to be updated, and you need to recompile.

- Chuck

-----Original Message-----
From: Matt Dittman [mailto:mddittman@h...]
Sent: Tuesday, May 28, 2002 2:02 PM
To: ASP+
Subject: [aspx] Renaming aspx pages


Why does it seem that you can't rename an ASP.NET page in Visual Studio?  
When I attempt to rename it, I do a find/replace within the .aspx and .cs 
file and replace all the old names with the new one.  The page renders 
fine, but none of the server controls work!  I have a hard time believing 
that Microsoft wants you to rebuild all your pages from scratch... Is 
there a trick to getting this to work?

  Return to Index