473,386 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

the end of satement error happen in vbscript

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
1 1041
Killer42
8,435 Expert 8TB
Where does it indicate the end of statement is expected?
May 9 '07 #2

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

Similar topics

2
by: Frank | last post by:
When I used IE 6.0 to view the ASP page on Window 2000 server PC, I encountered the error message: "Expected end of statement". The ASP page code is as:...
8
by: biro man | last post by:
I have a dynamic database driven page that I have been working on and tweaking etc until I have got it to work pretty much the way I want it to. I also have a defined website. I wish to include...
3
by: Mike Kanski | last post by:
I get this error Microsoft VBScript runtime error '800a01fb' When i call LoadPicture method, or when i pretty much do any operation with PictureBox like setting width and height. It happened...
3
by: AdamM | last post by:
Hi all, When I run my VbScript, I get the error: "ActiveX component can't create object: 'getobject'. Error 800A01AD". Any ideas what I did wrong? Here's my VBScript: dim o set...
9
by: kermit | last post by:
I keep seeing that you can use the FileSystemObject in either VB script, or Javascript on an aspx page. I added a refrence to the scrrun.dll I added importing namespaces for 'System.Object',...
4
by: Eugene Anthony | last post by:
One problem with the code bellow is after this code conn.qDupUser p1,rs I added: set rs = nothing to test the error handling capability.
1
by: dgr7 | last post by:
(sorry if this belongs in another thread, I didn't find a VBscript one...) Hello, I’m getting an error when trying to run this VBscript. Script: (the pathname of the script) Line: 25 Char: 1...
102
by: BoogieWithStu22 | last post by:
I am running into a problem with a web page I have created when viewing it in IE6 on some machines. The page has a database lookup. The user enters an account name or number and clicks a lookup...
10
by: =?Utf-8?B?cmFjZTRzcGFjZQ==?= | last post by:
Hi, IIS is not displaying run time errors - the various debugging options (Enable Server Side Debugging, Send Errors to Browser) have been set to true in the IIS console. No Errors are sent to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.