473,387 Members | 1,485 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,387 software developers and data experts.

Make VS.NET stop changing <br />

I'm trying to use 'compliant' HTML code in my asp.net pages, but VS.NET 2003
doesn't seem to think i should.
Everytime i put a <br /> into my code, VS changes it back to <br> for me.
I've played with some of the options under Text Editor/HTML/XML/Format and
Html Specific but the best i've been able to get it to do is change it to
<br > instead of <br> which doesn't help much.
Is there a way to get VS to realize that <br /> is valid?

Thanks in advance,

-Tim
Nov 18 '05 #1
5 1064
Not until VS2005 -- allegedly -- but you might be satisfied with
a hack [1].

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://www.howtodothings.com/showart...sp?article=729
"Tim Mulholland" <Ti***********@nospamaddress.com> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
I'm trying to use 'compliant' HTML code in my asp.net pages, but VS.NET 2003
doesn't seem to think i should.
Everytime i put a <br /> into my code, VS changes it back to <br> for me.
I've played with some of the options under Text Editor/HTML/XML/Format and
Html Specific but the best i've been able to get it to do is change it to
<br > instead of <br> which doesn't help much.
Is there a way to get VS to realize that <br /> is valid?

Thanks in advance,

-Tim

Nov 18 '05 #2

"clintonG" <csgallagher@RE************@metromilwaukee.com> ha scritto nel
messaggio news:en**************@TK2MSFTNGP11.phx.gbl...
Not until VS2005 -- allegedly -- but you might be satisfied with
a hack [1].
I'm trying to use 'compliant' HTML code in my asp.net pages, but VS.NET 2003 doesn't seem to think i should.
Everytime i put a <br /> into my code, VS changes it back to <br> for

me.

Are Borland C# Builder or Sharp Develop any better for this point of view?

Lorenzo
Nov 18 '05 #3
That's what i feared people would say. I looked around the web a bit before
asking and that was the general idea i was getting but i figured it couldn't
hurt to ask.

Thanks,

Tim

"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...
Not until VS2005 -- allegedly -- but you might be satisfied with
a hack [1].

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://www.howtodothings.com/showart...sp?article=729
"Tim Mulholland" <Ti***********@nospamaddress.com> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
I'm trying to use 'compliant' HTML code in my asp.net pages, but VS.NET 2003 doesn't seem to think i should.
Everytime i put a <br /> into my code, VS changes it back to <br> for me. I've played with some of the options under Text Editor/HTML/XML/Format and Html Specific but the best i've been able to get it to do is change it to <br > instead of <br> which doesn't help much.
Is there a way to get VS to realize that <br /> is valid?

Thanks in advance,

-Tim


Nov 18 '05 #4
In VS.NET2005 it seems to be *very* good.
You can set what content type you wish to support even - HTML/XHTML, etc.

"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...
Not until VS2005 -- allegedly -- but you might be satisfied with
a hack [1].

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://www.howtodothings.com/showart...sp?article=729
"Tim Mulholland" <Ti***********@nospamaddress.com> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
I'm trying to use 'compliant' HTML code in my asp.net pages, but VS.NET 2003 doesn't seem to think i should.
Everytime i put a <br /> into my code, VS changes it back to <br> for me. I've played with some of the options under Text Editor/HTML/XML/Format and Html Specific but the best i've been able to get it to do is change it to <br > instead of <br> which doesn't help much.
Is there a way to get VS to realize that <br /> is valid?

Thanks in advance,

-Tim


Nov 18 '05 #5
It is impossible, unfortunately. VS 2003 Design view is not XHTML-compliant.
VS 2005 is. I have given some explanations here
http://weblogs.asp.net/mikhailarkhip...16/132886.aspx

Thanks
Mikhail Arkhipov (MSFT)
--This post is provided "AS IS" with no warranties, and confer no rights --

"Tim Mulholland" <Ti***********@nospamaddress.com> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
I'm trying to use 'compliant' HTML code in my asp.net pages, but VS.NET 2003 doesn't seem to think i should.
Everytime i put a <br /> into my code, VS changes it back to <br> for me.
I've played with some of the options under Text Editor/HTML/XML/Format and
Html Specific but the best i've been able to get it to do is change it to
<br > instead of <br> which doesn't help much.
Is there a way to get VS to realize that <br /> is valid?

Thanks in advance,

-Tim

Nov 18 '05 #6

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

Similar topics

4
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my...
7
by: noor.rahman | last post by:
I have an XML file that stores data from an HTML form. I use XSL to display the data in HTML format. The data may have newline characters. However, XSL is not displaying the newlines properly in...
7
by: Rocky Moore | last post by:
I have a web site called HintsAndTips.com. On this site people post tips using a very simply webform with a multi line TextBox for inputing the tip text. This text is encode to HTML so that no...
2
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
1
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
9
by: Wayne | last post by:
$a = $_POST; # txt_content = This is a<CR><LF>Test $p = str_replace ("%0D%0A", "<br>", $a); That is the above code that I am using, however, it is not picking up the CR/LF from the textarea. I...
2
by: xhe | last post by:
I met a very headache problem in javascript, I think this might be difference between IE and NS / Safari. I have a text area <form> <textarea name='tex1' onkeyup='displayit();'></textarea>...
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,...
7
by: Nathan Sokalski | last post by:
Something that I recently noticed in IE6 (I don't know whether it is true for other browsers or versions of IE) is that it renders <br/and <br></br> differently. With the <br/version, which is what...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.