Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > CHECKBOX LIST ITEM SHOWS TWICE

Reply
Thread Tools

CHECKBOX LIST ITEM SHOWS TWICE

 
 
dancer
Guest
Posts: n/a
 
      05-18-2007
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>


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-19-2007

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


What's this?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE shows false and Firefox shows true Gianni Javascript 3 07-10-2009 09:18 PM
ObjectList list view shows empty data when postback and rendering using item template b301 ASP .Net Mobile 0 10-27-2007 05:26 PM
Bug with nested repeaters. Item events are called twice per item =?Utf-8?B?SmFtZXMgR2V1cnRz?= ASP .Net 4 03-28-2007 01:46 AM
disable checkbox list checkbox Vikram ASP .Net 1 01-25-2006 02:59 PM
Session var in page_load shows old value, buttonclick shows new . Whats wrong gce ASP .Net 0 05-07-2005 06:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57