473,326 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Visual Studio keeps removing my closing </li> tags

I have a section in my ASP.NET code where I have an HTML unordered list.
Visual Studio keeps removing the closing list item tags, except for the last
list item. In other words, Visual Studio makes my code look like the
following:

<ul>
<li>adasf
<li>asdfsa
<li>asdfd
<li>adfsdf</li>
</ul>

First of all, it really annoys me that it removes the closing tags at all,
but why does it remove all but the last one? Any ideas would be appreciated.
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Nov 19 '05 #1
2 1919
Some tags don't require ending tags. I prefer them, but that doesn't stop
VS from removing them. As to why it doesn't remove the last one, it's just
one of those 100's of quirks. At least it's better than front page.
"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a section in my ASP.NET code where I have an HTML unordered list.
Visual Studio keeps removing the closing list item tags, except for the
last list item. In other words, Visual Studio makes my code look like the
following:

<ul>
<li>adasf
<li>asdfsa
<li>asdfd
<li>adfsdf</li>
</ul>

First of all, it really annoys me that it removes the closing tags at all,
but why does it remove all but the last one? Any ideas would be
appreciated. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Nov 19 '05 #2
Check the schema that the document is set to be compliant with. This
determines how VS .NET will write the HTML for you.
"Jeremy Chapman" <me@here.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Some tags don't require ending tags. I prefer them, but that doesn't stop
VS from removing them. As to why it doesn't remove the last one, it's
just one of those 100's of quirks. At least it's better than front page.
"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a section in my ASP.NET code where I have an HTML unordered list.
Visual Studio keeps removing the closing list item tags, except for the
last list item. In other words, Visual Studio makes my code look like the
following:

<ul>
<li>adasf
<li>asdfsa
<li>asdfd
<li>adfsdf</li>
</ul>

First of all, it really annoys me that it removes the closing tags at
all, but why does it remove all but the last one? Any ideas would be
appreciated. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I want to write a _very_ simple text parser that would replace a string like: "This is text with /italics/, *bold* and _underline_." and generate automatically something like this: ...
3
by: Ian Partridge | last post by:
Hello, I am planning to use XML in a log file for an application I am writing. The format will be something like: <task date="2003-10-09" time="12:03:45"> <action type="action1" timetaken="4"...
3
by: Barry | last post by:
Hi HTML Experts, I would appreciate some advice about my problem where numbers are not being displayed correctly from a series of <LI> tags on this page :-...
2
by: Heinz Willi Wiedow | last post by:
Hey XML-Fans, I transform some XML-Files with XmlT to html. I want to have a DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
32
by: Mark | last post by:
Hi there I am using <li> tags for my menu. <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul>
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
4
by: David Cartwright | last post by:
Hi, I have a VB.NET (VS2005, .NET 2.0) application producing an XML file which is then used by a third-party product. It turns out the latter doesn't like self-closing tags (i.e. it would rather...
1
by: cherliloo | last post by:
How can i format ul / li tags in css? I'm not sure if it's possible to even format this. But here goes. "_" represent empty space . when i make a list on the web, it looks like this -main text...
1
by: Nathan Sokalski | last post by:
I am using the System.Web.UI.HtmlTextWriter, and would like to create tags that are self-closing (such as <tagname />). The RenderBeginTag method does not offer the option of making a self-closing...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.