Hi,
Just messing about with this, can get it to work with vb but want it in c#
Want the current time to display in the text box, but get a
Compiler Error Message: CS1041: Identifier expected, 'as' is a keyword
error
Just messing about with this, can get it to work with vb but want it in c#
Want the current time to display in the text box, but get a
Compiler Error Message: CS1041: Identifier expected, 'as' is a keyword
error
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%@ Page Language="c#" %>
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs);
currentDT.Value = DateTime.Now
End Sub
</script>
</head>
<body>
<% Response.Write("Hello World"); %>.
<form runat="server">
<input type="text" runat="server" id="currentDT" /></form>
</body>
</html>