View Single Post
  #3 (permalink)  
Old April 17th, 2008, 11:26 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Or:

<asp:DropDownList ID="drp" runat="server">
  <asp:ListItem Text="foo" Value="foo" />
</asp:DropDownList>

;)

But Doug is right; there's no difference. I usually use /> but sometimes I forget an element is self closing and accidentally type >. Then VWD inserts the end tag automatically which I usually leave in there.

Feel free to choose whatever you are most comfortable with.

Also, check out Tool | Options | Text Editor | HTML | Format.

Then click the Tag Specific Options button. In the dialog that follows, you can control the way tags are entered in the designer, including whether they auto close or not.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote