473,770 Members | 6,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

replace <br> with NL

How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom
Nov 19 '05 #1
15 2733
dim str as string = "hello<br>world "

dim newString as string = str.Replace("<b r>", System.Environm ent.NewLine)

or you could use VbCrLf....I prefer Environment.New Line

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom

Nov 19 '05 #2
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom

Nov 19 '05 #3
dim str as string = "hello<br>world "

dim newString as string = str.Replace("<b r>", System.Environm ent.NewLine)

or you could use VbCrLf....I prefer Environment.New Line

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom

Nov 19 '05 #4
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom

Nov 19 '05 #5
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )
Actually, both were what I was looking for, but it doesn't work for my
mailto tag.

I am trying to send text that has line breaks in them in body of the
message:

For example:

I set a variable msg = " <a href='mailto:tf *@yahoo.com?sub ject=Re:
Interview&body= this is<br><br>a test'>Email Me</a>"

This works fine as far as when my email program comes up but in the body I
get:

this is<br><br>a test

If I do a msg.replace("<b r>",vbCrLf) or
msg.replace("<b r>",System.Envi ronment.NewLine ), I get:

this isatest

I never get the line break.

What am I missing?

Thanks,

Tom

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom


Nov 19 '05 #6
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )
Actually, both were what I was looking for, but it doesn't work for my
mailto tag.

I am trying to send text that has line breaks in them in body of the
message:

For example:

I set a variable msg = " <a href='mailto:tf *@yahoo.com?sub ject=Re:
Interview&body= this is<br><br>a test'>Email Me</a>"

This works fine as far as when my email program comes up but in the body I
get:

this is<br><br>a test

If I do a msg.replace("<b r>",vbCrLf) or
msg.replace("<b r>",System.Envi ronment.NewLine ), I get:

this isatest

I never get the line break.

What am I missing?

Thanks,

Tom

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom


Nov 19 '05 #7
Weird. Perhaps its expecting one or the other but not both. Try
replacing it with vbCR only or vbLf only.
On Mon, 14 Feb 2005 13:12:19 -0800, "tshad"
<ts**********@f tsolutions.com> wrote:
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:%2******* *********@tk2ms ftngp13.phx.gbl ...
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )


Actually, both were what I was looking for, but it doesn't work for my
mailto tag.

I am trying to send text that has line breaks in them in body of the
message:

For example:

I set a variable msg = " <a href='mailto:tf *@yahoo.com?sub ject=Re:
Interview&body =this is<br><br>a test'>Email Me</a>"

This works fine as far as when my email program comes up but in the body I
get:

this is<br><br>a test

If I do a msg.replace("<b r>",vbCrLf) or
msg.replace("< br>",System.Env ironment.NewLin e), I get:

this isatest

I never get the line break.

What am I missing?

Thanks,

Tom


--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom



Nov 19 '05 #8
Weird. Perhaps its expecting one or the other but not both. Try
replacing it with vbCR only or vbLf only.
On Mon, 14 Feb 2005 13:12:19 -0800, "tshad"
<ts**********@f tsolutions.com> wrote:
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:%2******* *********@tk2ms ftngp13.phx.gbl ...
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )


Actually, both were what I was looking for, but it doesn't work for my
mailto tag.

I am trying to send text that has line breaks in them in body of the
message:

For example:

I set a variable msg = " <a href='mailto:tf *@yahoo.com?sub ject=Re:
Interview&body =this is<br><br>a test'>Email Me</a>"

This works fine as far as when my email program comes up but in the body I
get:

this is<br><br>a test

If I do a msg.replace("<b r>",vbCrLf) or
msg.replace("< br>",System.Env ironment.NewLin e), I get:

this isatest

I never get the line break.

What am I missing?

Thanks,

Tom


--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom



Nov 19 '05 #9
"Tom wilson" <ye*******@nosp am.com> wrote in message
news:hp******** *************** *********@4ax.c om...
Weird. Perhaps its expecting one or the other but not both. Try
replacing it with vbCR only or vbLf only.
I wouldn't think so as if one or the other worked, so would vbCrLf and
System.Environm ent.NewLine.

I am sending the email from Outlook, so I would have assumed that the <br>
would work.

Tom


On Mon, 14 Feb 2005 13:12:19 -0800, "tshad"
<ts**********@f tsolutions.com> wrote:
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:%2****** **********@tk2m sftngp13.phx.gb l...
Is this what you're looking for?
MyString = MyString.Replac e("<br>",vbcrlf )


Actually, both were what I was looking for, but it doesn't work for my
mailto tag.

I am trying to send text that has line breaks in them in body of the
message:

For example:

I set a variable msg = " <a href='mailto:tf *@yahoo.com?sub ject=Re:
Interview&bod y=this is<br><br>a test'>Email Me</a>"

This works fine as far as when my email program comes up but in the body I
get:

this is<br><br>a test

If I do a msg.replace("<b r>",vbCrLf) or
msg.replace(" <br>",System.En vironment.NewLi ne), I get:

this isatest

I never get the line break.

What am I missing?

Thanks,

Tom


--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
How do I go about this?

I used to know this, but can't find VB.net replace that does this.

Something like

string.replace( "<br>",NL)

Thanks,

Tom

Nov 19 '05 #10

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

Similar topics

4
7864
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 "languages" files and these are describes for things on my website. Example text looks like this:
6
12155
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with you and see if there are any improvments that i should make ;-) It should be fast and if possible compatible with todays modern browser-standards. It should be activated by the onload-event. This is my code, free for all to use:
7
19163
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 the browser. I even replaced all the newlines with <BR/> tags but eventhough I see the tags in my source, I don't get a line break in the output document. Any help would be greatly appreciated.
0
326
by: tshad | last post by:
How do I go about this? I used to know this, but can't find VB.net replace that does this. Something like string.replace("<br>",NL) Thanks,
13
18434
by: CK | last post by:
Hi all, I have a textarea control. I am putting it's value in an html email. The problem is that the new lines are being ignored. I want to take the controls value and replace any newline carriage returns, with an html <br> tag. I tried the following function but it doesn't work. Does anyone have any ideas how to accomplish this? Thanks in advance. ~ CK string getComments()
7
3627
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 most people use when they write static code (some people use <br>, but with xhtml you are required to close all tags), IE6 simply breaks to the next line like it is supposed to. However, with <br></br>, which is what is sometimes generated by...
3
2674
by: Alun | last post by:
I need to replace all new line characters in a string with a valid XHTML line break tag <br />. I'm trying to use the string.Replace method for this. Here's some example code: String description = "This is a video description \n Hello World"; description = description.Replace("\n", "<br />"); Literal1.Text = description;
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8880
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.