DateTime d = now( ); Response.write(d.month);Ans: It should be
DateTime d = DateTime.Now; Response.Write(d.month);
<asp:Literal ID=litGreeting Text=Hello, Mr. Fred Flintstone. runat=server />
<asp:Image ID=imgFred ImageURL=fred.gif runat=server />
DateTime d; d = new DateTime(1776, 7, 4, 14, 0, 0);
DateTime d; d = DateTime.Now;
<configuration> <system.web> <customErrors mode=Off /> </system.web> </configuration>
<html xmlns=http://www.w3.org/1999/xhtml>
<!DOCclass html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>This header is not included in the examples.