Click here to Skip to main content
15,868,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am asp.net beginner.i run the following program

HTML
<html>
<body>
<center>
<h2>ASP.NET</h2>
<p><%response.write(now)%></p>
</center>
</body>
</html>


in above program
HTML
<%response.write(now)%>
is not getting executed or there is no corresponding display in browser

what is the actual reason for that?

environment is windows xp sp2,iis v5.1, .Net 4

started asp.net using command

C#
aspnet_regiis.exe -i
Posted
Updated 14-Aug-11 5:58am
v3
Comments
thatraja 14-Aug-11 2:50am    
what's the output in browser? Include the screenshot or error message in your question
Member 8159289 14-Aug-11 4:01am    
output is ASP.NET

response.write(now) is not getting executed

Have you tried
ASP
<%Response.Write(DateTime.Now.ToString())%>
 
Share this answer
 
Comments
Member 8159289 14-Aug-11 22:06pm    
<%Response.Write(DateTime.Now.ToString())%> is also not getting executed
Chris Maunder 15-Aug-11 10:00am    
What's the error? You're not helping us help you.
Member 8159289 15-Aug-11 22:46pm    
page is not showing any error but

Date is not getting displayed
XML
<html>
<body>
<center>
<h2>ASP.NET</h2>
<p><% Response.Write(DateTime.Now.ToString())%></p>
</center>
</body>
</html>
 
Share this answer
 
Comments
Christian Graus 14-Aug-11 21:30pm    
I think he's using VB.NET, and I assume in VB his code is acceptable, or it would just not compile.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900