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

Simple HTML question. Can u help me out?

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>&nbsp;» From: </strong>" & msgFrom &_
Ln4 - "<br><strong>&nbsp;» Name: </strong>" & msgName &_
Ln5 - "<br><strong>&nbsp;» To: </strong>" & msgTo &_
Ln6 - "<br><strong>&nbsp;» 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

Nov 18 '05 #1
2 2166
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>&nbsp;» From: </strong>" & msgFrom & _
Ln4 - "<br><strong>&nbsp;» Name: </strong>" & msgName & _
Ln5 - "<br><strong>&nbsp;» To: </strong>" & msgTo & _
Ln6 - "<br><strong>&nbsp;» 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>&nbsp;» From: </strong>" & msgFrom &_
Ln4 - "<br><strong>&nbsp;» Name: </strong>" & msgName &_
Ln5 - "<br><strong>&nbsp;» To: </strong>" & msgTo &_
Ln6 - "<br><strong>&nbsp;» 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


Nov 18 '05 #2
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>&nbsp;» From: </strong>" & msgFrom & _
Ln4 - "<br><strong>&nbsp;» Name: </strong>" & msgName & _
Ln5 - "<br><strong>&nbsp;» To: </strong>" & msgTo & _
Ln6 - "<br><strong>&nbsp;» 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>&nbsp;» From: </strong>" & msgFrom &_
Ln4 - "<br><strong>&nbsp;» Name: </strong>" & msgName &_
Ln5 - "<br><strong>&nbsp;» To: </strong>" & msgTo &_
Ln6 - "<br><strong>&nbsp;» 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


Nov 18 '05 #3

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

Similar topics

7
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...
16
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...
6
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...
3
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...
13
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...
2
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>
2
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...
0
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...
7
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...
10
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...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
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...
0
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...
0
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...

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.