Renaming (or not renaming) Objects in HTML Design View
There are a ton of weirdo behaviors when using the VS.Net 2005 IDE, especially in the HTML-editing department. Someone in the IDE team apparently came to the conclusion that real developers never use WYSIWYG tools any more. On the contrary, a lot of real developers use such IDE's so that they can spend their time writing the real code, not the HTML code. I'm one of those cats, and sometimes I like to change the names of the objects I place onto my pages. Names like ObjectDataSource1, ObjectDataSource2, and so on, tend to not make as much sense to me as do names like dsAuthors and dsPublishers. So, I drag an ObjectDataSource onto a page, then click it, hit F4, and edit the ID property. First I get a dialog that tells me that any other markup referencing this object will break so I should think twice before doing so. If I click OK, expecting a few screen-flashes and then a changed ID, then look at the ID property in the grid, guess what?
Nothing happens. I clicked OK. I've tried it clicking Cancel, too. If you see that dialog, your ID won't be changed. Check your exception-handling and UI-validation routines, boys and girls, you missed the boat on this one.