Infolink

 

Search This Blog

Jan 22, 2014

Prevent self closing html tags in .NET

I create an input element, it will self close. How can I prevent this?

<asp:TextBox id="txt1" runat="server"></asp:TextBox
SOLUTION
  1. Tools
  2. Options
  3. Text Editor
  4. HTML
  5. Formatting
  6. Uncheck the box for Auto insert close tag




There are many other option for HTML formatting.

If you are using Visual Studio 2010, you can go to :
Tools > Options > Text Editor > HTML > Formatting > Tag Specific Options

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...