Working on an asp.net site using VS2005. When I'm in design view. I can't seem to change the ID of any control. When I change the ID, it immediately reverts back to the original value. If I go into source view, and change it there, it works. I can then go
back to design view and see the new ID.
Let me know if you've run into this problem and what, if any, is the fix. It's getting annoying.
..and that's exactly the behavior I would like with my IDE as well.
The app is not running. Also, the ID is the only property I can't edit in design mode. All other changes persist except for the ID. That's weird, and I'd hate to have to re-install VS just for that, but it may come to that point if I can't figure it out
otherwise.
When you change the name in design view, it attempts to do a refactor-rename that will fixup code that refers to that name. It sounds like this is failing so its rolling back the rename.
I'm having the same issue. I can understand when there are existing contrls to refactor, but this happens right when a new control is added. Just try to rename it and it fails. Looked at the existing HTML and it's all properly nested and valid. Looks more like
a bug in the IDE. Never had this problem in vs2003 or 2002
mendoza
Member
168 Points
37 Posts
Can't Change Control ID
Aug 29, 2006 07:23 PM|LINK
Working on an asp.net site using VS2005. When I'm in design view. I can't seem to change the ID of any control. When I change the ID, it immediately reverts back to the original value. If I go into source view, and change it there, it works. I can then go back to design view and see the new ID.
Let me know if you've run into this problem and what, if any, is the fix. It's getting annoying.
thanks for your help.
vivek_iit
All-Star
17778 Points
3189 Posts
MVP
Re: Can't Change Control ID
Aug 29, 2006 07:38 PM|LINK
Hi,
I am suing VS 2005, ASP.NET 2.0 and C# and I am able to change ID of any control in the Design mode, and the changes persist.
The IDs will not change while the application is running .
Hope this helps,
Vivek
Communifire: Social Networking and Business Collaboration Platform
mendoza
Member
168 Points
37 Posts
Re: Can't Change Control ID
Aug 29, 2006 08:07 PM|LINK
..and that's exactly the behavior I would like with my IDE as well.
The app is not running. Also, the ID is the only property I can't edit in design mode. All other changes persist except for the ID. That's weird, and I'd hate to have to re-install VS just for that, but it may come to that point if I can't figure it out otherwise.
samsp
Participant
1680 Points
330 Posts
Microsoft
Re: Can't Change Control ID
Aug 29, 2006 10:09 PM|LINK
gdzierzon
Member
136 Points
20 Posts
Re: Can't Change Control ID
Dec 18, 2006 06:08 PM|LINK
MCSD, MCDBA, MCT
www.learning2code.net
Please remember to click “Mark as Answer” on the post that helps.
gdzierzon
Member
136 Points
20 Posts
Re: Can't Change Control ID
Dec 18, 2006 06:12 PM|LINK
see Rick Strahls blog about this issue - definitely a bug in vs 2005
http://west-wind.com/weblog/posts/3192.aspx
MCSD, MCDBA, MCT
www.learning2code.net
Please remember to click “Mark as Answer” on the post that helps.
mendoza
Member
168 Points
37 Posts
Re: Can't Change Control ID
Dec 19, 2006 03:37 PM|LINK