Rom's Rants

Free-Roaming Hostility From A QA/Developer Perspective.

Monday, July 16, 2007

C#/ASP.NET error CS1026: ) expected

If you've used any inline evaluation blocks in your ASP.NET pages, you've probably come across an error similar to this one...
...\PageName.aspx(75): error CS1026: ) expected
When 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.

posted by Michael Russell at

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home