By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 901 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

the end of satement error happen in vbscript

P: 21
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...

Expand|Select|Wrap|Line Numbers
  1. <script>
  2. Sub Changed()
  3.     Try
  4.         Dim lcnt As Integer
  5.         If Me.c1.Checked = True Then
  6.             Me.Panel1.BackColor = Color.Yellow
  7.             lcnt = viewstate.Count
  8.             viewstate.Add(viewstate.Count, Me.Label1.Text.ToString)
  9.         End If
  10.         If Me.c1.Checked = False Then
  11.             Me.Panel1.BackColor = Color.YellowGreen
  12.         End If
  13.     Catch ex As Exception
  14.         Response.Write(ex.ToString)
  15.  End Sub
  16. </script>
May 9 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
Where does it indicate the end of statement is expected?
May 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.