i want to change background color in panel if checkbox checked is true
i am used vb script;
but i wrote given code
but the expected end of statement error happend
please help me
how define use vbscript...
<script>
Sub Changed()
Try
Dim lcnt As Integer
If Me.c1.Checked = True Then
Me.Panel1.BackColor = Color.Yellow
lcnt = viewstate.Count
viewstate.Add(viewstate.Count, Me.Label1.Text.ToString)
End If
If Me.c1.Checked = False Then
Me.Panel1.BackColor = Color.YellowGreen
End If
Catch ex As Exception
Response.Write(ex.ToString)
End Sub
</script>
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.