Is search and replace the only way to rename an asp control in the code behind file?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-19T22:29:05Z Indexed on 2010/03/19 22:31 UTC
Read the original article Hit count: 241

Filed under:
|
|

Is search and replace the only way to rename as asp control in the code behind file? I find this extremely annoying, but it is the only way I can find.

Scenario:

I'll find a variable that needs renaming (Usually to meet naming convention) I'll rename the variable in the aspx/ascx file. I'll have to go in the code behind files and search and replace. I get annoyed

Are there any better ways - preferably that would not touch a similarly named variable in another scope in the project.

I'm on VS2008 with resharper -- does VS2010 address this perhaps?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about refactoring