02-11-17, 02:43 AM
(01-11-17, 11:24 PM)a.ahmed كتب :شكرا صديفي على الردPHP كود :
For Each row As DataRow In dt.Rows
Dim id As Integer = row("ID")
Dim state As Boolean = row("الحالة")
Dim btn As Button = TryCast(Me.Controls("Button" & id), Button)
If state Then
btn.BackColor = Color.LightPink
Else
btn.BackColor = Color.LightGreen
End If
Next
لاكن اواجه مشكله بالكود
إقتباس : Object reference not set to an instance of an object
في مجال تعطيني كامل الكود مع ال select statement
