Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Expression Expected Error in Visual Web Developer 2008.NET whereas works fine in 2005.NET

Reply
Thread Tools

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

 
 
Anand Ganesh
Guest
Posts: n/a
 
      02-23-2008
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


 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      02-23-2008
"Anand Ganesh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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

 
Reply With Quote
 
 
 
 
Anand Ganesh
Guest
Posts: n/a
 
      02-24-2008
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]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Anand Ganesh" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> 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



 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      02-24-2008
"Anand Ganesh" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...

>>> 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

 
Reply With Quote
 
Anand Ganesh
Guest
Posts: n/a
 
      02-24-2008
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Anand Ganesh" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>
>>>> 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



 
Reply With Quote
 
Anand Ganesh
Guest
Posts: n/a
 
      02-24-2008
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" <(E-Mail Removed)> wrote in message news:u$(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> "Anand Ganesh" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>
>>>>> 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

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet drops on GRE Tunnel LAN side, whereas public IP are fine Addy Cisco 0 03-11-2013 01:58 PM
IE6 doesnt render the page properly whereas IE7 does =?Utf-8?B?QWxleCBGaW1pbmU=?= ASP .Net 2 08-31-2007 02:15 PM
AJAX works with Visual Web Developer built-in Web server, but ... antonyliu2002@yahoo.com ASP .Net 2 01-11-2007 06:12 PM
need asp.net visual web developer tutorial that works. paul ASP .Net 1 10-22-2005 04:13 AM
"Object expected" error with pop-up function in IE6, Firefox fine Chuck Martin Javascript 2 12-14-2004 07:07 PM



Advertisments