Hi Juan,
I'm back!!!!!
I know I have a LONG way to go, but I know a LOT more now than a week ago
when I started. You have clarified many things in the last couple days.
Can you tell me why my variables don't work?
I tried Dim Location As String = Location.Text but got error
messages.
With this I don't get error messages, but neither does it return the value
of the variable.
Thank you again.
<@ Page Language="VB" ClientTarget="downlevel" %>
<%@ Import Namespace="System.Web.Mail" %>
<script language="VB" runat="server">
Sub btnSendMail_OnClick(Source As Object, E As EventArgs)
Dim Location As String = Location
Dim Who As String = Who
Dim Check1 As String
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim strEmail As String
If Page.IsValid() Then
strEmail = txtEmail.Text
'Location = Location.Text
myMessage.From = "(e-mail address removed)"
myMessage.To = strEmail
myMessage.Subject = "E-mail Sample (HTML)"
' This is the magic line. Without this the message will just appear
' as plain HTML and won't be rendered by the recipient's email client.
' It'd be as if they did "View Source" on a web page.
MyMessage.BodyFormat = MailFormat.Html
' This is multi-lined simply for readability.
' Notice that it is a properly formatted HTML
' message and not just plain text like most email.
' A lot of people have asked how to use form data
' in the emails so I added an example of including
' the entered address in the body of the email.
myMessage.Body = "<h2>Wheeler's Accident Investigation Form</h2>" &
vbCrLf _
& " <p>" & vbCrLf _
& " Place where accident occurred: " & location & "<br>" & vbCrLf _
& " Who was injured:" & who & "<br>" & vbCrLf _
& " Employer's Premises?" & check1 & "<br>"
' Doesn't have to be local... just enter your
' SMTP server's name or ip address!
myMail.SmtpServer = ""
myMail.Send(myMessage)
frmEmail.Visible = False
lblUserMessage.Text = "An HTML-formatted email message has been sent to
" & strEmail & "."
lblUserMessage.Text = "Place of accident" & location
End If
End Sub
</script>
<html>
<head>
<title>ASP.NET Email (HTML Format) Sample</title>
</head>
<body>
<table width="750" bgcolor="#E9EDF4" table border="1" cellpadding="3">
<h3><center><font face="Verdana">Wheeler's Accident Investigation
Form</font></center></h3>
<asp:Label id="lblUserMessage" text="Enter your e-mail address:"
runat="server" />
<form method="post" id="frmEmail" runat="server">
<asp:TextBox id="txtEmail" size="30" runat="server" />
<asp:RegularExpressionValidator runat="server"
id="validEmailRegExp" ControlToValidate="txtEmail"
ValidationExpression="^[\w-]+(\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$"
errormessage="Please enter a valid email address."
Display="Dynamic" />
<asp:Button id="btnSendMail" text="Send Mail!"
OnClick="btnSendMail_OnClick" runat="server" />
<hr>
<%--____________________________________________________________________________--%>
<%--ROW 1--%> <td width="250" valign="top"> <font
face="Verdana" Size="2"> Location where accident occurred:
<asp:textbox id="Location"runat=server Width="200"/> </td> <td
align="right" valign="top" width="225"> <font face="Verdana"
Size="2">Employer's Premises <asp:CheckBox id=Check1 Text="yes"
runat="server" /> <asp:CheckBox id=Check2 Text="no" runat="server"
/> <br> Job site <asp:CheckBox id=Check3 Text="yes" runat="server"
/> <asp:CheckBox id=Check4 Text="no" runat="server" /> </td><td>
<font face="Verdana" Size="2">Date of accident</font><br> <asp:textbox
id="Date" runat=server Width="100"/></td>
<%--____________________________________________________________________________--%><%--ROW
2--%><tr> <td> <font face="Verdana" Size="2">Who was injured?</font><br>
<asp:textbox id="Who" runat=server width="200"/> </td> <td align=
"left"> <font face="Verdana" Size="2">Employee <asp:CheckBox
id=Check5runat="server" /> <br> Non-employee <asp:CheckBox id=Check6
runat="server" /> </td> <td align="right"><font face="Verdana"
Size="2"> Time of accident a.m. <asp:textbox id="am" runat=server
Width="90"/> p.m. <asp:textbox id="pm" runat=server Width="90"/> </TD>
<%--____________________________________________________________________________--%><%--ROW
3--%> <tr> <td> <font face="Verdana" Size="2">Date of Hire <br>
<asp:textbox id="Hiredate"runat=server/> </td> <td> <font
face="Verdana" Size="2">Job Title or Occupation
<br><asp:textboxid="occupation" runat=server width="200"/> </td> <td>
<font face="Verdana" Size="2">How long has employee workedat job where
injury occurred?<br><asp:textbox id="lengthofjob"runat=server/>
</td><%--____________________________________________________________________________--%><%--Row
4--%>    <p> <asp:Label id=Label1 font-name="arial"
font-size="10pt"runat="server"/></form><hr /></body></html>"Juan T.
messagere:> !> A part of
Juan's reply was Something else : you *must* put all the HTML> !> content
in ONE line.>> I meant : "all the HTML content in ONE line".>> The sample
at ASP101 places all the HTML content in ONE line,> even though it
composes that single line in several lines.>> That's why you need to use
VbCrLf and the underscore ( _ ):> to COMPOSE a single line over several
lines of code.>> Confusing ? You betcha.>> Also, you're inverting the
order of the VbCrLf and the underscore,> which is why the sample is
blowing up on you.>> i.e., you have :>> objMM.Body = DateTime.Now + " HI "
& _> "<html>" & vbCrLf & vbCrLf & _> "<head>" & vbCrLf & vbCrLf & _>
"</head>"& vbCrLf & vbCrLf & _> "<body>" & vbCrLf & vbCrLf & _>> etc....>>
When what you should have is :>> objMM.Body = DateTime.Now + " HI " _> &
"<html>" & vbCrLf & vbCrLf _> & "<head>" & vbCrLf & vbCrLf _> &
"</head>"& vbCrLf & vbCrLf _> & "<body>" & vbCrLf & vbCrLf _> etc...>>
i.e., the underscore goes at the end of the line> you want to break,
BEFORE the ampersand on the next line.>> Even more confusing is adding
unneeded HTML tags to an HTML body> which doesn't need them, unless you
need to have a background color.>> Here's a version of the ASP101 sample
without the> unneeded HTML tags and *with* HTML format :>> <%@ Page
Language="VB" ClientTarget="downlevel" %>> <%@ Import
Namespace="System.Web.Mail" %>> <script language="VB" runat="server">> Sub
btnSendMail_OnClick(Source As Object, E As EventArgs)> Dim myMessage
As New MailMessage> Dim myMail As SmtpMail> Dim strEmail As
String>> If Page.IsValid() Then> strEmail = txtEmail.Text>>
myMessage.From = "admin@" & Request.ServerVariables("SERVER_NAME")>
myMessage.To = strEmail> myMessage.Subject = "E-mail Sample
(HTML)">> ' This is the magic line. Without this the message will just
appear> ' as plain HTML and won't be rendered by the recipient's email
client.> ' It'd be as if they did "View Source" on a web page.>
MyMessage.BodyFormat = MailFormat.Html>> ' This is multi-lined simply
for readability.> ' Notice that it is a properly formatted HTML> '
message and not just plain text like most email.> ' A lot of people have
asked how to use form data> ' in the emails so I added an example of
including> ' the entered address in the body of the email.>
myMessage.Body = "<h2>Sample Message</h2>" & vbCrLf _> & " <p>" &
vbCrLf _> & " This message was sent from a sample at" & vbCrLf _> &
" <a href=""
http://yourserver.com"">Your Server 101</a>." & vbCrLf _>
& " It is used to show people how to send HTML" & vbCrLf _> & "
formatted email from an ASP.NET page." & vbCrLf _> & " If you did not
request this email yourself," & vbCrLf _> & " your address was entered
by one of our" & vbCrLf _> & " visitors." & vbCrLf _> & "
<strong>" & vbCrLf _> & " We do not store these e-mail addresses." &
vbCrLf _> & " </strong>" & vbCrLf _> & " </p>" & vbCrLf _> & "
<p><font size=""-1"">Please address all concerns
(e-mail address removed).</font></p>" & vbCrLf _> & " <p><font
size=""-1"">This message was sent to: " & strEmail &"</font></p>">> '
Doesn't have to be local... just enter your> ' SMTP server's name or ip
address!> myMail.SmtpServer = "YourSMTPServer">
myMail.Send(myMessage)>> frmEmail.Visible = False> lblUserMessage.Text
= "An HTML-formatted email message has been sent to" & strEmail & ".">
End If> End Sub> </script>>> <html>> <head>> <title>ASP.NET Email (HTML
Format) Sample</title>> </head>> <body>>> <asp:Label id="lblUserMessage"
text="Enter your e-mail address:"runat="server" />> <form method="post"
id="frmEmail" runat="server">> <asp:TextBox id="txtEmail" size="30"
runat="server" />> <asp:RequiredFieldValidator runat="server">
id="validEmailRequired" ControlToValidate="txtEmail">
errormessage="Please enter an email address."> display="Dynamic" />>
<asp:RegularExpressionValidator runat="server"> id="validEmailRegExp"
ControlToValidate="txtEmail">
ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$">
errormessage="Please enter a valid email address."> Display="Dynamic"
/>>> <asp:Button id="btnSendMail" text="Send
Mail!"OnClick="btnSendMail_OnClick" runat="server" />> </form>>> <hr />>>
</body>> </html>>> ------------------>> You'll see that it compiles just
fine and sends perfectly formatted HTML> without the need for those extra
HTML tags ( <html>, <head>, <body><meta...>.>> Of course, if you want the
yellow background, or any other color,> or a background image, include the
HTML tags.>> I, personally, hate email sent to me as it's too gaudy, but
to each hisown.>> Make sure you substitute your SMTP server's name before
running the page:>> myMail.SmtpServer = "YourSMTPServer">>>>> Juan T.
Llibre, asp.net MVP> asp.net faq :
http://asp.net.do/faq/> foros de
asp.net, en español :
http://asp.net.do/foros/>
in messageAlso, David,>> I
had asked why do I get this error message:>> Compiler Error Message:
BC30452: Operator '&' is not defined for typesString' and
'System.Web.UI.WebControls.TextBox'.>>>> A part of Juan's reply was
Something else : you *must* put all the HTMLcontent in ONE line.>>>> Do
you have any thoughts on that error message?>>>>>> "David"
messageAh,>>>>>> Sorry, I
have my newsreader on to ignore read messages.>>>>>> The P tags break the
lines in the rendered page. BR tags also breaklines (work as a hard
wrap).>>>>>> vbCrLf is a Visual Basic Carriage Return Line Feed. All this
does isallow the source html wrap onto a new line, so that your line is
not toolong.>>>>>> If you want to use the same thing in C#, then it is
something like...>>>>>> email.Body = "This is my email body\nNow I am on a
new line\nNote thebackslash and n to create a new line\n. I can't remember
though, you mightneed \r\n to create a new line";>>>>>> backslash n.>>>>>>
Is that what you looking for? This however doesn't affect your
renderedoutput. use \n where there is vbcrlf, however, vbcrlf is a defined
constant,and \n has to be in quotes.>>>>>> What you could do though
is...>>>>>> string vbCrLf = "\n";>>>>>> -->>> Best regards,>>> Dave
Colliver.>>>
http://www.AshfieldFOCUS.com>>> ~~>>>
http://www.FOCUSPortals.com - Local franchises available>>> "dancer"
messageDavid,>>>>>>>>
Not exactly does this answer my question. Could you please check
outJuan's answer to my first post on this subject and help me understand,
sinceI was copying my code from this code.>>>>>>>> Thank you.>>>>>>>>>>>>
messageThe vbCrLf are
purely to ensure that the line is not too long whengenerated. There is a
problem with over long lines that when they doeventually wrap, it can
disrupt your formatted email.>>>>>>>>>> You will note that there are no br
tags, but there are p tags <p> and</p>. These are what cause <P>aragraph
breaks. (Actually, they are for newparagraphs rather than breaking
paragraphs).>>>>>>>>>> Does this answer your question?>>>>>>>>>> (Note,
you probably can't press "Yes" below as you probably can't seeit. If you
can, then you have better eyes than me, as I can't see it.
>>>>>>>>>> -->>>>> Best regards,>>>>> Dave Colliver.>>>>>
http://www.AshfieldFOCUS.com>>>>> ~~>>>>>
http://www.FOCUSPortals.com -
in messageHi
Juan,>>>>>>>>>>>> What is the difference in what I am trying to do and
this? Why canTHEY break up the HTML content into different
lines?>>>>>>>>>>>>
email_html.aspx>>>>>> -------------------------------------------------------------------------------->>>>>>>>>>>>
<%@ Page Language="VB" ClientTarget="downlevel" %>>>>>>> <%@ Import
Namespace="System.Web.Mail" %>>>>>>> <script language="VB"
runat="server">>>>>>> Sub btnSendMail_OnClick(Source As Object, E As
EventArgs)>>>>>> Dim myMessage As New MailMessage>>>>>> Dim myMail
As SmtpMail>>>>>> Dim strEmail As String>>>>>>>>>>>> If Page.IsValid()
Then>>>>>> strEmail = txtEmail.Text>>>>>>>>>>>> 'myMessage.From =
"webmaster@" &Request.ServerVariables("SERVER_NAME")>>>>>> myMessage.From
= "(e-mail address removed)">>>>>> myMessage.To = strEmail>>>>>>
myMessage.Subject = "E-mail Sample (HTML) from ASP 101!">>>>>>>>>>>> '
This is the magic line. Without this the message will just appear>>>>>> '
as plain HTML and won't be rendered by the recipient's emailclient.>>>>>>
' It'd be as if they did "View Source" on a web page.>>>>>>
MyMessage.BodyFormat = MailFormat.Html>>>>>>>>>>>> ' This is multi-lined
simply for readability.>>>>>> ' Notice that it is a properly formatted
HTML>>>>>> ' message and not just plain text like most email.>>>>>> ' A
lot of people have asked how to use form data>>>>>> ' in the emails so I
added an example of including>>>>>> ' the entered address in the body of
the email.>>>>>> myMessage.Body = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD
HTML 4.0Transitional//EN"">" & vbCrLf _>>>>>> & "<html>" & vbCrLf _>>>>>>
& "<head>" & vbCrLf _>>>>>> & " <title>Sample Message From ASP
101</title>" & vbCrLf _>>>>>> & " <meta http-equiv=Content-Type
content=""text/html;charset=iso-8859-1"">" & vbCrLf _>>>>>> & "</head>" &
vbCrLf _>>>>>> & "<body bgcolor=""#FFFFCC"">" & vbCrLf _>>>>>> & "
<h2>Sample Message From ASP 101</h2>" & vbCrLf _>>>>>> & " <p>" & vbCrLf
_>>>>>> & " This message was sent from a sample at" & vbCrLf _>>>>>> & "
<a href=""
http://www.asp101.com"">ASP 101</a>." & vbCrLf _>>>>>> & " It
is used to show people how to send HTML" & vbCrLf _>>>>>> & " formatted
email from an ASP.NET page." & vbCrLf _>>>>>> & " If you did not request
this email yourself," & vbCrLf _>>>>>> & " your address was entered by
one of our" & vbCrLf _>>>>>> & " visitors." & vbCrLf _>>>>>> & "
<strong>" & vbCrLf _>>>>>> & " We do not store these e-mail addresses." &
vbCrLf _>>>>>> & " </strong>" & vbCrLf _>>>>>> & " </p>" & vbCrLf _>>>>>>
& " <p><font size=""-1"">Please address all concerns
(e-mail address removed).</font></p>" & vbCrLf _>>>>>> & " <p><font
size=""-1"">This message was sent to: " & strEmail &"</font></p>" & vbCrLf
_>>>>>> & "</body>" & vbCrLf _>>>>>> & "</html>" & vbCrLf>>>>>>>>>>>> '
Doesn't have to be local... just enter your>>>>>> ' SMTP server's name or
ip address!>>>>>> myMail.SmtpServer = "localhost">>>>>>
myMail.Send(myMessage)>>>>>>>>>>>> frmEmail.Visible = False>>>>>>
lblUserMessage.Text = "An HTML-formatted email message has been sentto " &
strEmail & ".">>>>>> End If>>>>>> End Sub>>>>>> </script>>>>>>>>>>>>>
<html>>>>>>> <head>>>>>>> <title>ASP.NET Email (HTML Format)
Sample</title>>>>>>> </head>>>>>>> <body>>>>>>>>>>>>> <asp:Label
id="lblUserMessage" text="Enter your e-mail address:"runat="server"
/>>>>>>> <form method="post" id="frmEmail" runat="server">>>>>>>
<asp:TextBox id="txtEmail" size="30" runat="server" />>>>>>>
<asp:RequiredFieldValidator runat="server">>>>>> id="validEmailRequired"
ControlToValidate="txtEmail">>>>>> errormessage="Please enter an email
address.">>>>>> display="Dynamic" />>>>>>> <asp:RegularExpressionValidator
runat="server">>>>>> id="validEmailRegExp"
ControlToValidate="txtEmail">>>>>>
ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$">>>>>>
errormessage="Please enter a valid email address.">>>>>> Display="Dynamic"
/>>>>>>>>>>>>> <asp:Button id="btnSendMail" text="Send
Mail!"OnClick="btnSendMail_OnClick" runat="server" />>>>>>>
</form>>>>>>>>>>>>> <hr />>>>>>>>>>>>> <p>>>>>>> Click
<ahref="
http://www.asp101.com/samples/email_html_aspx.asp">here</a> to
readabout and download the source code.>>>>>> </p>>>>>>>>>>>>>
</body>>>>>>>
</html>>>>>>>>>>>>>>>>>>> -------------------------------------------------------------------------------->>>>>>>>>>>>
messageYou don't
need to set the html/head/body tags within the HTML body>>>>>>> ...and, in
the VbCrLf thread, we established that you can't useVbCrLf in
HTML.>>>>>>>>>>>>>> Something else : you *must* put all the HTML content
in ONE line.>>>>>>> You can't break the lines with code.>>>>>>>>>>>>>> Get
rid of all the "VbCrLf" and all the "&" and write all your HTMLin a single
line,>>>>>>> line-breaking the body's content with "<br />" or "<P> ...
</P>" asneeded.>>>>>>>>>>>>>> Also, you can't insert Textbox controls into
your HTML.>>>>>>>>>>>>>> So, Check1.Text is out, too.>>>>>>>>>>>>>> If you
want to reference their content, after a user fills them out,>>>>>>>
capture it to a variable and use that, before writing to the
body.>>>>>>>>>>>>>> insert :>>>>>>>>>>>>>> Dim Check1 as String =
Check1.Text>>>>>>> Dim Check2 as String = Check2.Text>>>>>>> Dim Location
as String = Location.Text>>>>>>> before "Dim objMM as New
MailMessage()">>>>>>>>>>>>>> and, when composing the body, use
:>>>>>>>>>>>>>> mail.Body="Hi, <p>The location where the accident occurred
is :" &Location & "<br/>" & Check1 & ".">>>>>>> ' etc.>>>>>>>>>>>>>> You
*can* use the & to reference text variables.>>>>>>> Notice the location of
the quote marks.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Juan T. Llibre,
asp.net MVP>>>>>>> asp.net faq :
http://asp.net.do/faq/>>>>>>> foros de
asp.net, en español :
http://asp.net.do/foros/>>>>>>>
===================================>>>>>>> "dancer" <
[email protected]>
wrote in messageCan
somebody tell me why I get this message with the
followingcode?>>>>>>>>>>>>>>>> Compiler Error Message: BC30452: Operator
'&' is not defined fortypes 'String' and>>>>>>>>
'System.Web.UI.WebControls.TextBox'.>>>>>>>>>>>>>>>>
<html>>>>>>>>>>>>>>>>> <head>>>>>>>>>>>>>>>>> <% @Import
Namespace="System.Web.Mail" %>>>>>>>>>>>>>>>>> <script language="VB"
runat="server">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Sub
btnSendFeedback_Click(sender as Object, e as EventArgs)>>>>>>>>>>>>>>>>
'Create an instance of the MailMessage class>>>>>>>>>>>>>>>> Dim objMM as
New MailMessage()>>>>>>>>>>>>>>>> 'Set the properties - send the email to
the person who filled outthe>>>>>>>>>>>>>>>> 'feedback
form.>>>>>>>>>>>>>>>> objMM.To =
"(e-mail address removed)">>>>>>>>>>>>>>>>>>>>>>>> objMM.From =
"(e-mail address removed)">>>>>>>>>>>>>>>> 'send in html format>>>>>>>>>>>>>>>>
objMM.BodyFormat = MailFormat.html>>>>>>>>>>>>>>>> 'Set the priority -
options are High, Low, and Normal>>>>>>>>>>>>>>>> objMM.Priority =
MailPriority.Normal>>>>>>>>>>>>>>>> 'Set the subject>>>>>>>>>>>>>>>>
objMM.Subject = "Accident Investigation Form">>>>>>>>>>>>>>>>>>>>>>>> 'Set
the body>>>>>>>>>>>>>>>> objMM.Body = DateTime.Now + " HI " &
_>>>>>>>>>>>>>>>> "<html>" & vbCrLf & vbCrLf & _>>>>>>>>>>>>>>>> "<head>"
& vbCrLf & vbCrLf & _>>>>>>>>>>>>>>>> "</head>"& vbCrLf & vbCrLf &
_>>>>>>>>>>>>>>>> "<body>" & vbCrLf & vbCrLf & _>>>>>>>>>>>>>>>> Location
where accident occurred:>>>>>>>>>>>>>>>> Location.Text & _>>>>>>>>>>>>>>>>
"<br>"& _>>>>>>>>>>>>>>> 7> Check1.Text & "." & vbCrLf & vbCrLf &
_>>>>>>>>>>>>>>>> vbCrLf &vbCrLf & _>>>>>>>>>>>>>>>> Check2.Text & vbCrLf
& _>>>>>>>>>>>>>>>> "</td>" & vbCrLf & vbCrLf & _>>>>>>>>>>>>>>>>
"</body>" & vbCrLf & vbCrLf & _>>>>>>>>>>>>>>>>
"</html>">>>>>>>>>>>>>>>>>>>>>>>> 'Specify to use the default Smtp
Server>>>>>>>>>>>>>>>> SmtpMail.SmtpServer = "">>>>>>>>>>>>>>>> 'Now, to
send the message, use the Send method of the SmtpMailclass>>>>>>>>>>>>>>>>
SmtpMail.Send(objMM)>>>>>>>>>>>>>>>> panelSendEmail.Visible =
false>>>>>>>>>>>>>>>> panelMailSent.Visible = true>>>>>>>>>>>>>>>> End
Sub>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> </script>>>>>>>>>>>>>>>>>
</head>>>>>>>>>>>>>>>>>>>>>>>>> <body>>>>>>>>>>>>>>>>> <table width="750"
bgcolor="#E9EDF4" table border="1"cellpadding="3">>>>>>>>>>>>>>>>>
<h3><center><font face="Verdana">Wheeler's Accident
InvestigationForm</font></h3>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<hr>>>>>>>>>>>>>>>>><%--____________________________________________________________________________--%>>>>>>>>>>>>>>>>>
<%--ROW 1--%>>>>>>>>>>>>>>>>>>>>>>>>> <td width="250"
valign="top">>>>>>>>>>>>>>>>>>>>>>>>> <form
runat="server">>>>>>>>>>>>>>>>> <font face="Verdana"
Size="2">>>>>>>>>>>>>>>>> Location where accident occurred: <asp:textbox
id="Location"runat=server Width="200"/>>>>>>>>>>>>>>>>>
</td>>>>>>>>>>>>>>>>> <td align="right" valign="top"
width="225">>>>>>>>>>>>>>>>>>>>>>>>> <font face="Verdana"
Size="2">Employer's Premises>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> <asp:CheckBox
id=Check1 Text="yes" runat="server" />>>>>>>>>>>>>>>>> <asp:CheckBox
id=Check2 Text="no" runat="server" />>>>>>>>>>>>>>>>>
<br>>>>>>>>>>>>>>>>>>>>>>>>> Job site>>>>>>>>>>>>>>>> <asp:CheckBox
id=Check3 Text="yes" runat="server" />>>>>>>>>>>>>>>>> <asp:CheckBox
id=Check4 Text="no" runat="server" />>>>>>>>>>>>>>>>>>>>>>>>>
</td>>>>>>>>>>>>>>>>> <td>>>>>>>>>>>>>>>>> <font face="Verdana"
Size="2">Date of accident</font><br>>>>>>>>>>>>>>>>> <asp:textbox
id="Date" runat=server Width="100"/>>>>>>>>>>>>>>>>>>>>>>>>>
</td>>>>>>>>>>>>>>>>><%--____________________________________________________________________________--%>>>>>>>>>>>>>>>>>
<%--ROW 2--%>>>>>>>>>>>>>>>>>>>>>>>>> <tr> <td>>>>>>>>>>>>>>>>> <font
face="Verdana" Size="2">Who was injured?</font><br>>>>>>>>>>>>>>>>>
<asp:textbox id="Who" runat=server width="200"/>>>>>>>>>>>>>>>>>
</td>>>>>>>>>>>>>>>>> <td align= "left">>>>>>>>>>>>>>>>> <font
face="Verdana" Size="2">Employee <asp:CheckBox id=Check5runat="server"
/>>>>>>>>>>>>>>>>> <br>>>>>>>>>>>>>>>>> Non-employee <asp:CheckBox
id=Check6 runat="server" />>>>>>>>>>>>>>>>>>>>>>>>> </td>>>>>>>>>>>>>>>>>
<td align="right"><font face="Verdana" Size="2">>>>>>>>>>>>>>>>> Time of
accident a.m. <asp:textbox id="am"
runat=serverWidth="90"/>>>>>>>>>>>>>>>>> p.m. <asp:textbox id="pm"
runat=server Width="90"/>>>>>>>>>>>>>>>>>
</TD>>>>>>>>>>>>>>>>><%--____________________________________________________________________________--%>>>>>>>>>>>>>>>>>
<%--ROW 3--%>>>>>>>>>>>>>>>>> <tr>>>>>>>>>>>>>>>>> <td>>>>>>>>>>>>>>>>>
<font face="Verdana" Size="2">Date of Hire <br> <asp:textboxid="Hiredate"
runat=server/>>>>>>>>>>>>>>>>> </td>>>>>>>>>>>>>>>>> <td>>>>>>>>>>>>>>>>>
<font face="Verdana" Size="2">Job Title or Occupation<br><asp:textbox
id="occupation">>>>>>>> runat=server width="200"/>>>>>>>>>>>>>>>>>
</td>>>>>>>>>>>>>>>>> <td>>>>>>>>>>>>>>>>> <font face="Verdana"
Size="2">How long has employee worked at jobwhere injury>>>>>>>>
occurred?<br><asp:textbox id="lengthofjob" runat=server/>>>>>>>>>>>>>>>>>
</td>>>>>>>>>>>>>>>>><%--____________________________________________________________________________--%>>>>>>>>>>>>>>>>>
<%--Row 4--%>>>>>>>>>>>>>>>>>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<p>>>>>>>>>>>>>>>>>>>>>>>>> <asp:Label id=Label1 font-name="arial"
font-size="10pt"runat="server"/>>>>>>>>>>>>>>>>> <!Copied from
/smirnof>>>>>>>>>>>>>>>>> <asp
anel id="panelSendEmail"
runat="server">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<%--asp:textbox id= runat="server" /--%>>>>>>>>>>>>>>>>>
<br>>>>>>>>>>>>>>>>> <b>Your Message:</b><br>>>>>>>>>>>>>>>>>
<%--asp:textbox id="txtMessage" TextMode="MultiLine">>>>>>>>>>>>>>>>
Columns="40" Rows="10" runat="server" /--%>>>>>>>>>>>>>>>>>
<p>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> <asp:button runat="server"
id="btnSendFeedback" Text="Send>>>>>>>>>>>>>>>> Feedback!">>>>>>>>>>>>>>>>
OnClick="btnSendFeedback_Click" />>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
</asp
anel>>>>>>>>>>>>>>>>> <asp
anel id="panelMailSent" runat="server"
Visible="False">>>>>>>>>>>>>>>>> An email has been sent to the email
address you specified.>>>>>>>>>>>>>>>> Thanks!>>>>>>>>>>>>>>>>
</asp
anel>>>>>>>>>>>>>>>>> </form>>>>>>>>>>>>>>>>>
</body>>>>>>>>>>>>>>>>>
</html>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>