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 15 2730
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
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
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
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
"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
"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
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
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
"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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:
|
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:
|
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.
|
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,
|
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()
| |
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...
|
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;
|
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,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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...
|
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...
|
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();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |