I am trying to dynamically create a javascript link. But, I get the following
error:
BC32017: Comma, ')', or a valid expression continuation expected.
Here is the line I try creating the link. I'm done staring at it. Can
someone else see what may be the matter. Fresh pair of eyes maybe? Thanks:
<a href='javascrip t:PopIt(<%# chr(39)
%>java/ipix/ipix-viewer.aspx?Fil eString=<%#
DataBinder.Eval (Container.Data Item, "[\"FileString \"]") & chr(39) %>, 375,
350)' class="more"> 4 8476
I'm having similar problems. Let me ask you a question about the FileString
parameter used by the Eval method.
// What are the [ ] brackets for? Are they supposed to be output as text
literals?
"[\"FileString \"]"
On the other hand -- my problem -- with the Eval method is writing out a
delineated string of text.
// need this ouput
'Title'
// is not working for me
"\'Title\'"
Other than that and to get back to your error message...
I wondered why you wrote the <%#... %>data binding evaluator for chr(39)?
Here's what I have learned. In ASP <%= ...%was an evaluator for writing
variant data types to the response. Similarly when binding to a control the
data being bound is being cast to a string data type by <%#...%>.
// Have you wrote this way?
<a href='javascrip t:PopIt(java/ipix/ipix-viewer.aspx?
FileString=<%# DataBinder.Eval (Container.Data Item,
"[\"FileString \"]") & chr(39) %>, 375, 350)'
class="more">.. .</a>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
"Erica" <Er***@discussi ons.microsoft.c omwrote in message
news:C3******** *************** ***********@mic rosoft.com...
>I am trying to dynamically create a javascript link. But, I get the following
error:
BC32017: Comma, ')', or a valid expression continuation expected.
Here is the line I try creating the link. I'm done staring at it. Can
someone else see what may be the matter. Fresh pair of eyes maybe? Thanks:
<a href='javascrip t:PopIt(<%# chr(39)
%>java/ipix/ipix-viewer.aspx?Fil eString=<%#
DataBinder.Eval (Container.Data Item, "[\"FileString \"]") & chr(39) %>, 375,
350)' class="more">
Clinton, Thanks for replying.
I actually had a brain freeze and was thinking C#.
I changed the line to the following:
<%# ((System.Data.D ataRow)Containe r.DataItem)["FileString "] %>
Which makes the comma error go away, but now I'm getting the following error
on that line:
BC30691: 'DataRow' is a type in 'Data' and cannot be used as an expression.
Any idea on what that may be?
Regarding your problem, can you post some code. Thanks.
"clintonG" wrote:
I'm having similar problems. Let me ask you a question about the FileString
parameter used by the Eval method.
// What are the [ ] brackets for? Are they supposed to be output as text
literals?
"[\"FileString \"]"
On the other hand -- my problem -- with the Eval method is writing out a
delineated string of text.
// need this ouput
'Title'
// is not working for me
"\'Title\'"
Other than that and to get back to your error message...
I wondered why you wrote the <%#... %>data binding evaluator for chr(39)?
Here's what I have learned. In ASP <%= ...%was an evaluator for writing
variant data types to the response. Similarly when binding to a control the
data being bound is being cast to a string data type by <%#...%>.
// Have you wrote this way?
<a href='javascrip t:PopIt(java/ipix/ipix-viewer.aspx?
FileString=<%# DataBinder.Eval (Container.Data Item,
"[\"FileString \"]") & chr(39) %>, 375, 350)'
class="more">.. .</a>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
"Erica" <Er***@discussi ons.microsoft.c omwrote in message
news:C3******** *************** ***********@mic rosoft.com...
I am trying to dynamically create a javascript link. But, I get the
following
error:
BC32017: Comma, ')', or a valid expression continuation expected.
Here is the line I try creating the link. I'm done staring at it. Can
someone else see what may be the matter. Fresh pair of eyes maybe? Thanks:
<a href='javascrip t:PopIt(<%# chr(39)
%>java/ipix/ipix-viewer.aspx?Fil eString=<%#
DataBinder.Eval (Container.Data Item, "[\"FileString \"]") & chr(39) %>, 375,
350)' class="more">
I solved my problem using HTML character entities.
The last error message sounds like it won't support the cast to the
System.Data.Dat aRow type within the <%# ...%databinding expression. That's
a guess but throwing the error messages at google does what?
--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
"Erica" <Er***@discussi ons.microsoft.c omwrote in message
news:25******** *************** ***********@mic rosoft.com...
Clinton, Thanks for replying.
I actually had a brain freeze and was thinking C#.
I changed the line to the following:
<%# ((System.Data.D ataRow)Containe r.DataItem)["FileString "] %>
Which makes the comma error go away, but now I'm getting the following
error
on that line:
BC30691: 'DataRow' is a type in 'Data' and cannot be used as an
expression.
Any idea on what that may be?
Regarding your problem, can you post some code. Thanks.
"clintonG" wrote:
>I'm having similar problems. Let me ask you a question about the FileString parameter used by the Eval method.
// What are the [ ] brackets for? Are they supposed to be output as text literals? "[\"FileString \"]"
On the other hand -- my problem -- with the Eval method is writing out a delineated string of text.
// need this ouput 'Title'
// is not working for me "\'Title\'"
Other than that and to get back to your error message...
I wondered why you wrote the <%#... %>data binding evaluator for chr(39)? Here's what I have learned. In ASP <%= ...%was an evaluator for writing variant data types to the response. Similarly when binding to a control the data being bound is being cast to a string data type by <%#...%>.
// Have you wrote this way? <a href='javascrip t:PopIt(java/ipix/ipix-viewer.aspx? FileString=<%# DataBinder.Eval (Container.Data Item, "[\"FileString \"]") & chr(39) %>, 375, 350)' class="more">. ..</a>
<%= Clinton Gallagher NET csgallagher AT metromilwaukee. com URL http://clintongallagher.metromilwaukee.com/
"Erica" <Er***@discussi ons.microsoft.c omwrote in message news:C3******* *************** ************@mi crosoft.com...
>I am trying to dynamically create a javascript link. But, I get the following
error:
BC32017: Comma, ')', or a valid expression continuation expected.
Here is the line I try creating the link. I'm done staring at it. Can
someone else see what may be the matter. Fresh pair of eyes maybe?
Thanks:
<a href='javascrip t:PopIt(<%# chr(39)
%>java/ipix/ipix-viewer.aspx?Fil eString=<%#
DataBinder.Eval (Container.Data Item, "[\"FileString \"]") & chr(39) %>,
375,
350)' class="more">
After hours of trying different variations of the code, this is what finally
fixed my problem:
<%="<a href=" & chr(34) & "javascript :Pop It(" & chr(39) &
"java/ipix/ipix-viewer.aspx?Fil eString="%><%#C ontainer.DataIt em(2)%><%=chr(3 9) & ", 375, 350)" & chr(34)%class=" more"><%# Container.DataI tem(1)%></a>
Thanks Clinton for replying to my problem.
"clintonG" wrote:
I solved my problem using HTML character entities.
The last error message sounds like it won't support the cast to the
System.Data.Dat aRow type within the <%# ...%databinding expression. That's
a guess but throwing the error messages at google does what?
--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
"Erica" <Er***@discussi ons.microsoft.c omwrote in message
news:25******** *************** ***********@mic rosoft.com...
Clinton, Thanks for replying.
I actually had a brain freeze and was thinking C#.
I changed the line to the following:
<%# ((System.Data.D ataRow)Containe r.DataItem)["FileString "] %>
Which makes the comma error go away, but now I'm getting the following
error
on that line:
BC30691: 'DataRow' is a type in 'Data' and cannot be used as an
expression.
Any idea on what that may be?
Regarding your problem, can you post some code. Thanks.
"clintonG" wrote:
I'm having similar problems. Let me ask you a question about the
FileString
parameter used by the Eval method.
// What are the [ ] brackets for? Are they supposed to be output as text
literals?
"[\"FileString \"]"
On the other hand -- my problem -- with the Eval method is writing out a
delineated string of text.
// need this ouput
'Title'
// is not working for me
"\'Title\'"
Other than that and to get back to your error message...
I wondered why you wrote the <%#... %>data binding evaluator for chr(39)?
Here's what I have learned. In ASP <%= ...%was an evaluator for writing
variant data types to the response. Similarly when binding to a control
the
data being bound is being cast to a string data type by <%#...%>.
// Have you wrote this way?
<a href='javascrip t:PopIt(java/ipix/ipix-viewer.aspx?
FileString=<%# DataBinder.Eval (Container.Data Item,
"[\"FileString \"]") & chr(39) %>, 375, 350)'
class="more">.. .</a>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
"Erica" <Er***@discussi ons.microsoft.c omwrote in message
news:C3******** *************** ***********@mic rosoft.com...
I am trying to dynamically create a javascript link. But, I get the
following
error:
BC32017: Comma, ')', or a valid expression continuation expected.
Here is the line I try creating the link. I'm done staring at it. Can
someone else see what may be the matter. Fresh pair of eyes maybe?
Thanks:
<a href='javascrip t:PopIt(<%# chr(39)
%>java/ipix/ipix-viewer.aspx?Fil eString=<%#
DataBinder.Eval (Container.Data Item, "[\"FileString \"]") & chr(39) %>,
375,
350)' class="more">
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: benben |
last post by:
I am looking for a good example of overloading operator , (operator comma)
Any suggestions?
Ben
|
by: Koster |
last post by:
Hi folks,
As I understand it, amongst other things, the comma operator may be used to
cause any number of expressions to be evaluated (who's results are thrown
away except the last) where only one is expected, without the use of braces.
So
if (condition) i = 0, j = 1;
causes both i = 0 and j = 1 expressions to be evaluated if condition
evaluates to true. So far just making sure my understanding of the comma
|
by: Shawn Odekirk |
last post by:
Some code I have inherited contains a macro like the following:
#define setState(state, newstate) \
(state >= newstate) ? \
(fprintf(stderr, "Illegal state\n"), TRUE) : \
(state = newstate, FALSE)
This macro is called like this:
setState(state, ST_Used);
|
by: grid |
last post by:
Hi,
I need some clarifications on how the comma operator is used to return
values from function like macros.I saw a typical implementation as :
#define sigfillset(ptr) ( *(ptr) &= ~(sigset_t)0 , 0 )
How is the 0 after the comma operator used to return 0 on success of the
macro function ?
TIA
|
by: siliconwafer |
last post by:
Hi,
In case of following expression:
c = a && --b;
if a is 0,b is not evaluated and c directly becomes 0.
Does this mean that && operator is given a higher precedence over
'--'operator?
as opposed to what is mentioned in precedence table?
Also,
with comma operator.
consider,
| |
by: Sriram Rajagopalan |
last post by:
Hi,
Is the extra comma at the end of an enumerator-list valid according to
the C standards?
With the gcc compiler the following is valid:
enum DAYS {MONDAY, TUESDAY, }day1;
gcc does not even *warn* about the extra comma after "TUESDAY".
|
by: andrew queisser |
last post by:
Is this code below valid C++? I'd like to use this construct but I'm not
sure if it'll be portable.
struct foo
{
char x;
};
struct bar
{
char sameSizeAsFooX;
|
by: ll |
last post by:
Hi,
I currently am using the following regex in js for email validation,
in which the email addresses can be separated by commas or
semicolons. The problem, however, lies in that I can type two emails
(as a run-on, with no comma or semicolon), and as long as it ends in a
three character domain, it is accepted as valid.
I wonder if there would be a way to make the comma or semicolon
mandatory if a second email address existed?
Many...
|
by: Lighter |
last post by:
In 5.3.3.4 of the standard, the standard provides that "The lvalue-to-
rvalue(4.1), array-to-pointer(4.2),and function-to-pointer(4.3)
standard conversions are not applied to the operand of sizeof."
I think this rule is easy to understand. Because I can find the
contexts of applying the rule as follows.
(1)
int* p = 0;
int b1 = sizeof(*p); // OK, b1 = 4, *p would not be evaluated.
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |