In some situations, when I try to rename a control on a form the property editor will not allow me to do it. This is really annoying especially if I’ve just dropped a control on the page and simply want to give it a new name.
Instead I get some odd message:
If you have references in the markup they will not be rename.
Do you want to continue?
Really now? And what references might that be? I’ve just dropped you on the damn form <g>…
If I say YES, nothing happens. If I say no nothing happens. Convenient. In order to rename the control I have to drop to source view.
On other occasions I’ve seen the Refactoring dialogs kick in. They go through the whole project to try to fix references and it’s quite possible that they run into some sort of naming conflict. Besides this process can take a few seconds on a large project.
Damn it all I want to do is rename a control!
This has been buggy since early betas and I kind of racked that up beta issues, but seeing this now in the RC has me worried. This is a really annoying and time consuming bug if you’re working in design view (which I’m doing less and less because VS.NET’s fluky behavior). Basically I’m using design view only for dropping controls onto the form and setting properties in the property sheet, plus some simple editing.
Another really odd bug:
I frequently see VS.NET injecting multiple CSS references into my <header> tag:
<head runat="server">
<title>Untitled Page</title>
<link href="westwind.css" rel="stylesheet" type="text/css" />
<link href="westwind.css" rel="stylesheet" type="text/css" />
<link href="westwind.css" rel="stylesheet" type="text/css" />
<link href="westwind.css" rel="stylesheet" type="text/css" />
</head>
In this scenario I have a user control on the page which has an ‘embedded’ style sheet tag in it so I can design and see the layout properly. So I do:
<link href="westwind.css" rel="stylesheet" type="text/css" />
… My Html Markup
in the control. I haven’t found another way to see the control styled properly – anybody know of a better way? Anyway, this results in dual style references in a page which is invalid HTML if I forget to the remove the style reference.
I ‘think’ this is what’s causing the dual references above, but I’m not sure. It doesn’t happen instantly and I only notice those piled up references after a while of working on a form.
Other Posts you might also like