[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 983
  • Last Modified:

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;
  }
}
0
lenmor
Asked:
lenmor
1 Solution
 
AlexFMCommented:
Replace every " inside of string constant with "":

"<div id=""Layer1"" ... ></div>";
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now