CHECKBOX LIST ITEM SHOWS TWICE


D

dancer

USING VB.NET AND ASP.NET
ASP CHECKBOX LIST ON A FORM PAGE - RESULTS SENT BY HTML EMAIL

CAN SOMEBODY TELL ME WHY THE RESULTS SHOW THE FIRST ITEM TWICE?

Dim s As String = Indicate.Text

Dim i As Int32

For i = 0 to Indicate.Items.Count-1

If Indicate.Items(i).Selected Then

s= s & Indicate.Items(i).Text

s = s & "<br>"

End If

Next

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
IN THE BODY OF THE EMAIL MESSAGE APPEARS THIS. I HAVE INCLUDED THE LINE
BEFORE THE TROUBLE LINE AND 2 LINES AFTER.

& "<tr> <td colspan=""3""> Nature and extent injury and property damaged: "
& TheNature & "<br>" & "</td></tr>" & vbCrLf _

& "<tr> <td colspan=""3""> PLEASE INDICATE ALL WHICH CONTRIBUTED TO THE
INJURY: " & "<BR>" & S & "</TD></TR>" & vbCrLf _

& "<tr> <td colspan=""3""> Supervisor's corrective action to ensure this
type of accident does not recur: " & TheActionNew & "<br>" & vbCrLf _

& "<tr> <td colspan=""3""> Was employee trained in the appropriate use of
Personal Protective Equipment/Proper safety procedures? " & Training &
vbCrLf _



ON THE FORM PAGE APPEARS THIS CHECKBOX LIST:

<%--____________________________________________________________________________--%>

<%--Row 7--%>

<tr>

<td><font face="Verdana" Size="2" type = "strong"> PLEASE INDICATE ALL OF
THE FOLLOWING WHICH CONTRIBUTED TO THE INJURY:

<asp:CheckBoxList id=Indicate runat="server">

<asp:ListItem style> <font face="Verdana" Size="2">Improper
instruction</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Lack of training or
skill</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Operating without
authority</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Horseplay</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Physical or mental
impairment</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Failure to
secure</asp:ListItem>

<asp:ListItem style> <font face="Verdana" Size="2">Failure to
lockout</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Unsafe position</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Improper dress</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Improper protective
equipment</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Unsafe equipment</asp:ListItem>

<asp:ListItem> <font face="Verdana" Size="2">Poor
housekeeping</asp:ListItem>


</asp:CheckBoxList>


</td>

</tr>
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top