<%@ Page Language="C#" Culture="auto:en-US" UICulture="auto:en-US"%>
<script runat="server">
void Page_PreRender()
{
lblDate.Text = DateTime.Now.ToString("D");
lblPrice.Text = (512.33m).ToString("c");
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Select Culture Auto</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Today's date is:
<br />
<asp:Label
id="lblDate"
Runat="server" />
<br /><br />
The price of the product is:
<br />
<asp:Label
id="lblPrice"
Runat="server" />
</div>
</form>
</body>
</html>
|