473,396 Members | 1,678 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,396 software developers and data experts.

Expression Expected Error in Visual Web Developer 2008.NET whereas works fine in 2005.NET

Hello Everybody,

I have a line in a Javascript function as follows

<%=ServerSideVariable%>;

This works fine in 2005.NET

But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.

Any suggestions please.

I use this for ASP.NET callback feature.
Thanks
Anand Ganesh
Feb 23 '08 #1
5 1728
"Anand Ganesh" <an**********@computer.orgwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
I have a line in a Javascript function as follows

<%=ServerSideVariable%>;

This works fine in 2005.NET
Please post the JavaScript function...
But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.
And what is the syntax error...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 23 '08 #2
It says "A runtime error has occured. Do you wish to Debug ?" Line 35 :
Syntax Error.

The moment I comment the following then all works fine.

Very strange indeed.

//<%=ServerSideVariable%>;

Thank you for replying to me.

Regards
Anand

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Anand Ganesh" <an**********@computer.orgwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
>I have a line in a Javascript function as follows

<%=ServerSideVariable%>;

This works fine in 2005.NET

Please post the JavaScript function...
>But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.

And what is the syntax error...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 24 '08 #3
"Anand Ganesh" <an**********@computer.orgwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>I have a line in a Javascript function as follows

<%=ServerSideVariable%>;

This works fine in 2005.NET

Please post the JavaScript function...
>>But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.

And what is the syntax error...?

It says "A runtime error has occurred. Do you wish to Debug ?" Line 35 :
Syntax Error.

The moment I comment the following then all works fine.

Very strange indeed.

//<%=ServerSideVariable%>;
So what happens when you debug...? Does ServerSideVariable have a value...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 24 '08 #4
Mark,

I am not able to go that line itself.

It just throws error even before debugger reaches that line.

Only if I comment that line my program execution resumes to normal
behaviour.

Thanks
Anand

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:e3**************@TK2MSFTNGP05.phx.gbl...
"Anand Ganesh" <an**********@computer.orgwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>>I have a line in a Javascript function as follows

<%=ServerSideVariable%>;

This works fine in 2005.NET

Please post the JavaScript function...

But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.

And what is the syntax error...?

It says "A runtime error has occurred. Do you wish to Debug ?" Line 35 :
Syntax Error.

The moment I comment the following then all works fine.

Very strange indeed.

//<%=ServerSideVariable%>;

So what happens when you debug...? Does ServerSideVariable have a
value...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 24 '08 #5
Mark,

This is my original problem which I have posted in another thread with subject as "Cookie Issue in IE even when Cookie is not used" in this same forum.

To resolve this cookie issue I was trying to use the ICallbackEventHandler so I can get the value from the first page to the second page.

If you visit www.advancedtechnologyworks.com you can understand my problem.

Thank you for spending your valuable time in helping me out.

With best regards
Anand Ganesh
"Anand Ganesh" <an**********@computer.orgwrote in message news:u$**************@TK2MSFTNGP05.phx.gbl...
Mark,

I am not able to go that line itself.

It just throws error even before debugger reaches that line.

Only if I comment that line my program execution resumes to normal
behaviour.

Thanks
Anand

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:e3**************@TK2MSFTNGP05.phx.gbl...
>"Anand Ganesh" <an**********@computer.orgwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>>>I have a line in a Javascript function as follows
>
<%=ServerSideVariable%>;
>
This works fine in 2005.NET

Please post the JavaScript function...

But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.

And what is the syntax error...?

It says "A runtime error has occurred. Do you wish to Debug ?" Line 35 :
Syntax Error.

The moment I comment the following then all works fine.

Very strange indeed.

//<%=ServerSideVariable%>;

So what happens when you debug...? Does ServerSideVariable have a
value...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Feb 24 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayne Wengert | last post by:
I am trying to build an aspx page with a repeater contol bound to a sqldatareader. I can get the basic fields to display just fine but I want to format a date/time filed. My code is below. I am...
0
by: snowman | last post by:
I have vb and sql server express 2005 installed locally. I cannot add a data connection in vb express. I keep getting the error "An error has occured while establishing......26 - Error Locating...
0
by: fiona | last post by:
Reading, Berkshire, UK 05 June 2007 - Crainiate Software make details available of the release of Objecto Framework 2.0, an upgrade to their enterprise business component framework, designed to...
6
by: ducks1010 | last post by:
I get an error message with the below page of Object Expected, Error Code 0. The page loads fine except for the flash code, which is connected to AC_RUnActiveContent.js. The page works fine on a...
1
by: ducks1010 | last post by:
I get an error message with the below page of Object Expected, Error Code 0. The page loads fine except for the flash code, which is connected to AC_RUnActiveContent.js. The page works fine on a...
2
by: Nikolay Belyh | last post by:
1. Why does Visual Studio 2008 started ignoring //{NO_DEPENDENCIES} in resource.h? If I edit file "resource.h" _manually_, it rebuilds the whole solution. It worked just fine with Visual Studio...
3
by: kimiraikkonen | last post by:
Hi, I was looking for an example on CodeProject and saw an interesting thing, i downloaded the article source code and converted to my VB 2005 Express and compiled with no problem, however when i...
0
by: TaraPriest | last post by:
Hi all, I've got a vb.net web application that is using a web service to stream documents from a repository. Once the service feeds me the document I'l downloading it using the browser response...
5
by: ravno | last post by:
I am developing a Windows-application - database mssql - visual basic. I add Datasets to forms, bind them to daatagridview/textboxes - fill with dataadapter - everything's fine so far. Here's my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.