Hi,
i created a script to send form values by email. I am working in ASP.net /
VB.
The email is sent in HTM format.
Well, i everything is working fine but i am getting an error in the
msg.Body. Can you tell me what i am doing wrong?
Ln1 - msg.Body = "<html><head><style type='text/css'> {font-family: Verdana,
Arial, Helvetica, sans-serif; font-size: 11px;color: #333333;
background-color: </style></head><body>" &_
Ln2 - "<strong>New Message</strong>" &_
Ln3 - "<br><strong> » From: </strong>" & msgFrom &_
Ln4 - "<br><strong> » Name: </strong>" & msgName &_
Ln5 - "<br><strong> » To: </strong>" & msgTo &_
Ln6 - "<br><strong> » Subject: </strong>" & msgSubject &_
Ln7 - "<br><strong>Message Text</strong>" &_
Ln8 - "<br> " & msgMessageField &_
Ln9 - "</body></html>"
The error i get is the following:
BC30203: Identifier expected. Line 1
Thank You,
Miguel 2 2167
It's solved...stupid thing: used &_ instead of & _
Thanks Anyway,
Miguel
"Bin Song" <an*******@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com... Use the line-continuation character, which is a space followed by an
underscore ( _), at the point at which you want the line to break. In the
following example, the statement is broken into three lines with
line-continuation characters. Ln1 - msg.Body = "<html><head><style type='text/css'> {font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color: #333333; background-color: </style></head><body>" & _ Ln2 - "<strong>New Message</strong>" & _ Ln3 - "<br><strong> » From: </strong>" & msgFrom & _ Ln4 - "<br><strong> » Name: </strong>" & msgName & _ Ln5 - "<br><strong> » To: </strong>" & msgTo & _ Ln6 - "<br><strong> » Subject: </strong>" & msgSubject & _ Ln7 - "<br><strong>Message Text</strong>" & _ Ln8 - "<br> " & msgMessageField & _ Ln9 - "</body></html>"
Bin Song, MCP ----- Miguel Dias Moura wrote: -----
Hi,
i created a script to send form values by email. I am working in
ASP.net / VB. The email is sent in HTM format.
Well, i everything is working fine but i am getting an error in the msg.Body. Can you tell me what i am doing wrong?
Ln1 - msg.Body = "<html><head><style type='text/css'> {font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color: #333333; background-color: </style></head><body>" &_ Ln2 - "<strong>New Message</strong>" &_ Ln3 - "<br><strong> » From: </strong>" & msgFrom &_ Ln4 - "<br><strong> » Name: </strong>" & msgName &_ Ln5 - "<br><strong> » To: </strong>" & msgTo &_ Ln6 - "<br><strong> » Subject: </strong>" & msgSubject &_ Ln7 - "<br><strong>Message Text</strong>" &_ Ln8 - "<br> " & msgMessageField &_ Ln9 - "</body></html>"
The error i get is the following: BC30203: Identifier expected. Line 1
Thank You, Miguel
It's solved...stupid thing: used &_ instead of & _
Thanks Anyway,
Miguel
"Bin Song" <an*******@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com... Use the line-continuation character, which is a space followed by an
underscore ( _), at the point at which you want the line to break. In the
following example, the statement is broken into three lines with
line-continuation characters. Ln1 - msg.Body = "<html><head><style type='text/css'> {font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color: #333333; background-color: </style></head><body>" & _ Ln2 - "<strong>New Message</strong>" & _ Ln3 - "<br><strong> » From: </strong>" & msgFrom & _ Ln4 - "<br><strong> » Name: </strong>" & msgName & _ Ln5 - "<br><strong> » To: </strong>" & msgTo & _ Ln6 - "<br><strong> » Subject: </strong>" & msgSubject & _ Ln7 - "<br><strong>Message Text</strong>" & _ Ln8 - "<br> " & msgMessageField & _ Ln9 - "</body></html>"
Bin Song, MCP ----- Miguel Dias Moura wrote: -----
Hi,
i created a script to send form values by email. I am working in
ASP.net / VB. The email is sent in HTM format.
Well, i everything is working fine but i am getting an error in the msg.Body. Can you tell me what i am doing wrong?
Ln1 - msg.Body = "<html><head><style type='text/css'> {font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color: #333333; background-color: </style></head><body>" &_ Ln2 - "<strong>New Message</strong>" &_ Ln3 - "<br><strong> » From: </strong>" & msgFrom &_ Ln4 - "<br><strong> » Name: </strong>" & msgName &_ Ln5 - "<br><strong> » To: </strong>" & msgTo &_ Ln6 - "<br><strong> » Subject: </strong>" & msgSubject &_ Ln7 - "<br><strong>Message Text</strong>" &_ Ln8 - "<br> " & msgMessageField &_ Ln9 - "</body></html>"
The error i get is the following: BC30203: Identifier expected. Line 1
Thank You, Miguel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: gene.ellis |
last post by:
Good morning. I am racking my brains over what seems like should be a
simple question. I have a string that contains text and html.
Basically, I would like to grab the HTML tags from the string and...
|
by: Terry |
last post by:
Hi,
This is a newbie's question. I want to preload 4 images and only when
all 4 images has been loaded into browser's cache, I want to start a
slideshow() function. If images are not completed...
|
by: koen colen |
last post by:
Hi, simple question I guess. The question is actually in the code itself as
this was the simplest way to explain.
....
var favorite = GetCookie('lang');
if (favorite != null) {
switch...
|
by: trialanderror |
last post by:
Both of these apply to using IE 6.0 or Netscape 7.x:
First question:
I am trying to set up a simple horizontal menu as a red strip across
the browser window. Here is the relevant part of the...
|
by: LRW |
last post by:
Having a problem getting a onSubmit function to work, to where it popsup a
confirmation depending on which radiobutton is selected.
Here's what I have:
function checkdel() {
if...
|
by: Ivan Demkovitch |
last post by:
Hi!
I'm trying to parse RSS news feed with code as simple as possible.
Simple XML:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<item>
|
by: Hazzard |
last post by:
I just realized that the code I inherited is using all asp.net server
controls (ie. webform controls) and when I try to update textboxes on the
client side, I lose the new value of the textbox when...
|
by: 42 |
last post by:
I implemented a simple class inherited from Page to create a page
template. It simply wraps some trivial html around the inherited page,
and puts the inherited page into a form.
The problem I...
|
by: abcd |
last post by:
I am trying to set up client machine and investigatging which .net
components are missing to run aspx page.
I have a simple aspx page which just has "hello world" printed....
When I request...
|
by: serge calderara |
last post by:
Dear all,
I need to build a web application which will contains articles (long or short)
I was wondering on what is the correct way to retrive those article on web
page.
In orther words, when...
|
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...
|
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
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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...
|
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: 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: 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...
| |