Compiler Error Message: CS1002: ; expected . this error is thrown by browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amit dhiman
    New Member
    • Dec 2010
    • 1

    Compiler Error Message: CS1002: ; expected . this error is thrown by browser

    sir i m just trying to exicute the code


    <%@ Page Language="C#" ContentType="te xt/html" ResponseEncodin g="utf-8" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitl ed Document</title>
    </head>

    <body bgcolor="#9966C C">
    <center>
    <h1>ASP.NET</h1>
    <h2>HERE IS THE .NET WORLD</h2>
    <p><%Response.W rite(now())%></p>
    </center>
    </body>
    </html>


    THE BROWSER SHOWING THE ERROR IN LINE

    <p><%Response.W rite(now())%></p>

    please help........
  • prasad599
    New Member
    • Feb 2009
    • 24

    #2
    use this way,

    <%Response.Writ e(DateTime.Now) ;%>

    Comment

    Working...