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

Textbox value formatting

Dear Experts,

I would like to find out whether can I retrieve a string from the database
and retain the format in the string to be show in a textbox control or append
into a message's body to be sent out through email. For example, the string
is as follow:
--------------------------------------------
Dear all,

Kindly be informed that we will have the following guests visiting our
facility today:

Rizalman Ibrahim Inc. Sdn Bhd
Rizalman Ibrahim
Zamir Shukri
Syed Abdul Rahman

--------------------------------------------

Can I maintain the same format into the textbox control and append into the
email message body?
Please advise and thanks.

Regards,
SB
Mar 2 '06 #1
3 1018
Seok,

Probably will UrlEncode do this for you.

I myself am in these case mostly so lazy that I do

Dim MyMailstring as string = MyString.Replace("VBCRLF", "<br>")

I hope this helps,

Cor
Mar 2 '06 #2
Cor Ligthert [MVP] wrote:
Seok,

Probably will UrlEncode do this for you.

I myself am in these case mostly so lazy that I do

Dim MyMailstring as string = MyString.Replace("VBCRLF", "<br>")

I hope this helps,

Cor


Does this actually work? Doesn't it look voor the string "VBCRLF" which
isn't there?

Or did you mean this:
Dim MyMailstring as string = MyString.Replace(VbCrLf, "<br>")

No idea if that actually works though. But I would avoid using HTML in
email all together and just dump the textbox contents in the mail unless
you have a very good reason to use HTML.

--
Rinze van Huizen
C-Services Holland b.v
Mar 2 '06 #3
Rinze,

I had to look twice to see my stupidity, of course has it to be as you
write.

I assume that it was a kind of typo.

However thanx for correcting this mistake.
(Before you think it is not, I knew this)

I agree with you about the HTML.

:-)

Cor
"C-Services Holland b.v." <cs*@REMOVEcsh4u.nl> schreef in bericht
news:YP******************************@zeelandnet.n l...
Cor Ligthert [MVP] wrote:
Seok,

Probably will UrlEncode do this for you.

I myself am in these case mostly so lazy that I do

Dim MyMailstring as string = MyString.Replace("VBCRLF", "<br>")

I hope this helps,

Cor


Does this actually work? Doesn't it look voor the string "VBCRLF" which
isn't there?

Or did you mean this:
Dim MyMailstring as string = MyString.Replace(VbCrLf, "<br>")

No idea if that actually works though. But I would avoid using HTML in
email all together and just dump the textbox contents in the mail unless
you have a very good reason to use HTML.

--
Rinze van Huizen
C-Services Holland b.v

Mar 2 '06 #4

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

Similar topics

2
by: Raed Sawalha | last post by:
Hi, This is probably pretty simple but... I am dynamically adding rows to a HtmlTable that contain Textbox controls. (There may be more than one server control/textbox in a given cell) How...
2
by: Atreju | last post by:
Ok I got form within a c sharp page. Situation: On the form I have a drop downliwst and a textbox, the dropdownlist is populated with products and the textbox has a default vale of the product...
1
by: swatidesai0407 | last post by:
im working on php i want the textbox value to pass in a href it goes as this <input type="text" name="use"> <a href="new.php?cat=textbox value dat is entered"> plz tell me wat to do
2
by: Nowezo | last post by:
Hi, Can you please help me, I want to write a dropdown box that have an option 'Other' but when the Other is selected my textbox need to be enable and take the textbox value as an output instead of...
1
by: viral123 | last post by:
Hi all I am using Crystal report and I am running my report successfully for my query but I want to make my query for one specific date. I want to get the date value from the textbox value. ...
2
by: Archanak | last post by:
Hi, I have one common text box to get email id. I have 2 forms and both form action connects to different programs. I want to use this textbox value(i.e email id) only for both the forms. How...
10
by: pt36 | last post by:
Hi I have a page with a form and a textbox. before to submit the form I want to chek if the inserted value in the textbox is already present in a database. So I need to pass the textbox value...
1
by: visweswaran2830 | last post by:
Hi, I have datagrid control. In that I place textbox, insert link button in hearder template. When I click that Insert button the value from textbox should be loaded into grid. I am capturing at...
0
by: yogarajan | last post by:
Hi All I am create textbox and collect textbox value at runtime using c# my aspx code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> <!DOCTYPE html...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...
0
jinu1996
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...

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.