posted 8/27/2010 by Raghav Khunger
In this blog I will show how to stop automatic insertion of ID tags of the controls in ASP.NET. In many instances I don't like the automatic insertions of ID tags on my ASPX page, specially with case of literals. For example when you drag your control or double click the control from Visual Studio ToolBox on your form you will see this kind of picture:
i.e ID tag is automatically inserted. Now how to stop that ?
Below are the steps which will show you how to do it so :
Select "Options" from the "Tools" menu.
Navigate to Environment >> Text Editor >> HTML >> Miscellaneous
Uncheck the "Auto ID elements on paste in Source View" checkbox and click "Ok" button.
That's it we are done. Now to verify our work open the Visual Studio Toolbox and drag a control over the form or double click the control so as to place it on the form.
Here is the next screen which you will see after you have placed your control.
As you saw above the id tag is not inserting automatically.
Do let me know your feedback , comments.
Mr. Raghav, you are always posting blogs that are interesting and useful for everyone. I have found myself enjoying while reading your ideas! Great post!
What kind of email newsletter would you prefer to receive from CodeAsp.Net?18