")" expected error when there's supppose to be only 1 set of parenthesis

  • Thread starter Thread starter .Net Sports
  • Start date Start date
N

.Net Sports

The following error message is baffling me :

Compiler Error Message: CS1026: ) expected


<asp:Literal id="lblAmount_Attempted" runat="server" text='<%#
DataBinder.Eval(Container.DataItem, _
"Amount_Attempted") %>' />


...there should be no nested parenthesis in the preceeding code

?????
..netsports
 
I think Eliyahu is right...

I do not believe that the line continuation character _ used in VB.net
is valid in the HTML design view in asp.net. I would try moving the
content all to one line instead of breaking it accross two.

JP>
 
Yeah, i would have to agree. I don't know how picky ASP is but i would
add a space between the / and the > at the close tag. I always do
because I'm afraid of it yelling and screaming at me.
 
What is an underscore character after Container.DataItem, for?

Eliyahu
 
You can break across two. You just don't need any underscores for that.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top