473,468 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
sir i m just trying to exicute the code


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

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


THE BROWSER SHOWING THE ERROR IN LINE

<p><%Response.Write(now())%></p>

please help........
Dec 14 '10 #1
1 3566
prasad599
24 New Member
use this way,

<%Response.Write(DateTime.Now);%>
Dec 14 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rodrigo-Dublin | last post by:
Hello there I wrote a web site in c# and I'm using forms authentication for some of the pages in the root folder. The site is fully accessible from the web no problem, but when I request crawler...
3
by: RodrigoIreland | last post by:
Hello there I wrote a web site in csharp and I'm using forms authentication for some of the pages in the root folder. The site is fully accessible from the web no problem, but when I request...
3
by: N. Graves | last post by:
Hello, I don't understand this error message." Error accessing File. Network Connection may have been lost." I'm not using any network connection for the database. In the VBA editor is goes...
1
by: Hers2keep | last post by:
I have a report that I run which consists of two subreports. Occasionally, one or the other reports do not have valid recordsets due to a parameter query based on date. Right now, if there are...
2
by: ad | last post by:
I have a customErrors section in Web.config. All error except error 403 and 404, will be redirect to GenericErrorPage.aspx. How can I show the e.Message or some explicit statement according...
8
by: g_man | last post by:
I am trying trap Runtime error 3022 (duplicates) in the click event of a command button that closes the form. I have code in the Form_Error event that does a good job of providing a more meaningful...
3
by: mohsinews | last post by:
Hey, Hope you are all doing good. I am a new bee here. I have recently transfer a website from one hosting server to another and got the error message "Fatal error: Unable to read 4761 bytes...
5
AAPWM
by: AAPWM | last post by:
Hello My job is to extract data from my companies database with Crystal Reports, export that data to Excel, modify the data, save the data as "Text "tab delimited"", and upload to the database...
2
by: Shaheen Kushan | last post by:
I desperately need help with this error, Compilation Error: Compiler Error Message: CS1002: ; expected Source Error: Line 71:...
1
by: Anu ms | last post by:
Whenever i am trying yo compile , getting the error as Compilation Error: Compiler Error Message: CS1002: ; expected but i am not able to locate the error in the code. Thank you in Advance...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.