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 3 1030
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.Replac e("VBCRLF", "<br>")
I hope this helps,
Cor
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.Replac e("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.Replac e(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
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*@REMOVEcsh4 u.nl> schreef in bericht
news:YP******** *************** *******@zeeland net.nl... 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.Replac e("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.Replac e(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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 do I get the value of a textbox when the form is posted back?
I would expect something like:
|
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
price.
Problem:
The first item prce in the dropdownlist is populated in the textbox.
When I select another product from the dropdownlist the value within the
|
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
|
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 Other.
<script language=javascript type="text/javascript">
function pairSelectToOther(whichCtrl,otherCtrl,otherStr)
{
if(whichCtrl.options.value == otherStr)
{
|
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.
My query small example is as follow:
Select name from employee where date_of_birth = '01/01/1984'
| |
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 can i get the value of text box and use it in both forms?
<html>
|
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 by a javascript link to another
page to check.
my code is
<a href="javascript:location.href='page_check.php' "Go check </a>
and this work and open page_check.php
|
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 rowcommand()
here the code:
If e.CommandName = "Insert" Then
Dim t1 As TextBox
t1 = CType(e.Item.FindControl("phasetxt"), TextBox)
Dim t2 As TextBox
|
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
|
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...
|
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: 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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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...
| |