[網頁] VB轉C#
Dim strString As String
Dim rc As RepeaterItemCollection = Repeater1.Items
Dim myCheckBox As CheckBox
For Each Item As RepeaterItem In rc
myCheckBox = CType(Item.FindControl("CheckBox1"), CheckBox)
If myCheckBox.Checked Then
strString = CType(Item.FindControl("Label1"), Label).Text
If strString > "" Then
' 在這邊看你要作啥動作
End If
End If
Next
請高手幫我把上面的程式碼轉成C#,謝謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.229.43.244
推
07/18 15:19, , 1F
07/18 15:19, 1F
推
07/18 16:11, , 2F
07/18 16:11, 2F
→
07/18 18:57, , 3F
07/18 18:57, 3F
推
07/18 23:09, , 4F
07/18 23:09, 4F
→
07/19 01:02, , 5F
07/19 01:02, 5F
→
07/19 12:18, , 6F
07/19 12:18, 6F