CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 2/1/2006 9:21:17 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 7 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
codequest
Asp.Net User
Renaming pages and user controls - markup doesn't update?2/1/2006 9:21:17 PM

0/0

In VS2005, I renamed a user control in the solution explorer...and then notice that the name had not been automagically updated in pages that reference the user control.

I would think that would be a must-have feature for an IDE like this...am I missing something?

Any guidance on this would be appreciated.

Thanks!

ScottGu
Asp.Net User
Re: Renaming pages and user controls - markup doesn't update?2/2/2006 2:05:12 AM

0/0

Hi CodeQuest,

When you rename an item the .aspx and .vb or .cs code-behind files are renamed, but the class names contained within them aren't.  The reason for this is because you might have code in the project that assumes that those files have the same name -- in which case automatically renaming them could break things.

There is refactoring support in VS 2005 that you can use to automatically go through the project and fix up all references for you.  This is one feature to consider using if you want make a change throughout your project and its dependencies.

Hope this helps,

Scott

codequest
Asp.Net User
Re: Renaming pages and user controls - markup doesn't update?2/3/2006 5:08:02 PM

0/0

Yep, it does help.  I appreciate the view into why it's complicated.  I'll take a look at the refactoring feature.    Thanks!
3 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

End User Guide You can then update information, and modify your site directly from ... An acronym for Hypertext Markup Language. The language behind internet web pages. Icons ...
TheMSsForum.com >> Asp >> Nested Masters, User Controls, and VS2005 ... And I tried creating a WebForm page, then renaming it from Child.aspx to Child. ... The markup that is generated when I drag the User Control is > ...
www.debian-administration.org/doc/ChangeLog ... user: steve date: Sun Apr 29 14:39:22 2007 +0000 files: Pages.pl description: ... tests/yawns-tips.t description: 2007-03-10 23:22:38 by steve Added test case and ...
Build And Go Abridged User Guide You can then update information, and modify your site directly from ... An acronym for Hypertext Markup Language. The language behind internet web pages. Icons ...
End User Guide 36. RENAMING A FILE OR FOLDER .37. COPYING A FILE .39. DELETING A ... An acronym for Hypertext Markup Language. The language behind internet web pages. Icons ...
End User Guide The site builder will update your web site layout and menu automatically ... An acronym for Hypertext Markup Language. The language behind internet web pages. Icons ...
User talk:Lupin/archive12 - Wikipedia, the free encyclopedia 103 After update... 177 Popups feature request - advanced controls for TOC ... (see above for my reports) for a while, and I have checked "ignore safe pages" ...
User talk:The Cunctator - Wikipedia, the free encyclopedia 39 Andy Kaufman lives! ( I think we have all been tricked big time.) 40 Dearly departed ... (such as renaming the anthrax pages to something that made more sense, and ...
WebEdit Professional Reseller Information Version 5.0 dated 6/14/2007 Page 39 of 47. Lenox Web Site Builder User's Guide www.LenoxWeb.net ... Markup Language. The language behind internet web pages ...
CodeProject: ASP.NET AJAX Controls and Extenders. Free source code and ... Tabs & Property Pages. Toolbars & Docking windows. Tree Controls. Web Development. Ajax and Atlas ... Trace and Logs. User Controls. Validation. View State ...


 
All Times Are GMT