CHECKBOX LIST ITEM SHOWS TWICE

Discussion in 'ASP .Net' started by dancer, May 18, 2007.

  1. dancer

    dancer Guest

    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>
     
    dancer, May 18, 2007
    #1
    1. Advertising

  2. "dancer" <> wrote in message
    news:...
    > Dim s As String = Indicate.Text


    What's this?
     
    Alexey Smirnov, May 19, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gce
    Replies:
    0
    Views:
    797
  2. UJ
    Replies:
    0
    Views:
    357
  3. =?Utf-8?B?SmFtZXMgR2V1cnRz?=

    Bug with nested repeaters. Item events are called twice per item

    =?Utf-8?B?SmFtZXMgR2V1cnRz?=, Mar 15, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    982
    =?Utf-8?B?SmFtZXMgR2V1cnRz?=
    Mar 28, 2007
  4. b301
    Replies:
    0
    Views:
    1,237
  5. Gianni

    IE shows false and Firefox shows true

    Gianni, Jul 10, 2009, in forum: Javascript
    Replies:
    3
    Views:
    493
    Thomas 'PointedEars' Lahn
    Jul 10, 2009
Loading...

Share This Page