...\PageName.aspx(75): error CS1026: ) expectedWhen you go to that line on your page, you see that your parenthesis add up.
<%# Eval("TRACKING_INFO").ToString().Replace("|", " "); %>The culprit is the semicolon at the end of the statement. Delete that and the error will go away.
9 comments:
WTF?! Why does...why does that work? x__x
Thanks Rom. I was looking at this error, and it was so generic and the context so specific that I didn't think I'd find an answer.
++ points to you! Thanks!
Thanx I always wondered why wouldn't this work
VB.net can give the same error, but without the semicolon. What's the fix in that case?
Very helpful. Thanks a lot.
hey thanx it works for me too :)
Thnx..A lot...
Helped me out too!
Also, if the evaluation is in quotes '<%#Eval(Name)%>' and if the name contains a colon, error shows up as the string has unclosed colon. Eg
'ASP.NET's Page'
Thank you!
Post a Comment