Compiler Error Message: CS1002: ; expected

Here is my code, why do I get Compiler Error Message: CS1002: ; expected ???


class clsMagenta : INTPageBlock
//---------------------------------------------------------------------------------
{
  //............................................................................
  public override Table Run ( )
  //............................................................................
  {
    Table oTable  = new Table();

    TableRow oRow = new TableRow ();
    TableCell oCell = new TableCell ();

    oCell.Text = "<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 41px; top: 136px;"><iframe src="http://www.magentanews.com/magenta/xml/html/407.html" width="198" height="248" scrolling="auto" frameborder="0"></iframe></div>";
    oRow.Cells.Add (oCell);
    oTable.Rows.Add (oRow);
    return oTable;
  }
}
lenmorAsked:
Who is Participating?
 
AlexFMConnect With a Mentor Commented:
Replace every " inside of string constant with "":

"<div id=""Layer1"" ... ></div>";
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.