I have a readonly textbox i want to put the today date in there on th epage load but don't have any idea how to getthe dat inthere please help me
here is my code:
Expand|Select|Wrap|Line Numbers
- <%@ Page language="c#" Codebehind="Accomplishment.aspx.cs" AutoEventWireup="false" Inherits="Accomplishments.Accomplishment" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>Accomplishment</title>
- <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
- <meta name="CODE_LANGUAGE" Content="C#">
- <meta name="vs_defaultClientScript" content="JavaScript">
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
- </HEAD>
- <body>
- <form id="Form1" method="post" runat="server">
- <table height="100%" cellSpacing="0" width="700" align="center" border="1">
- <tr>
- <td height="50"><IMG src="header.jpg" width="700"></td>
- </tr>
- <tr>
- <td vAlign="top">
- <table cellPadding="5" width="700">
- <tr>
- <td>
- FirstName:
- <asp:TextBox ID="txtFirstName" Runat="server"></asp:TextBox>
- LastName:
- <asp:TextBox ID="txtLastName" Runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>
- DateCreated:
- <asp:TextBox ID="txtdatecreated" Runat="server" ReadOnly="True"></asp:TextBox>
- ProejctName:
- <asp:TextBox ID="txtProject" Runat="server"></asp:TextBox>
- <asp:dropdownlist id="drpMonth" AutoPostBack="True" Runat="server">
- <asp:ListItem Value="">Select a Month</asp:ListItem>
- <asp:ListItem Value="01">January</asp:ListItem>
- <asp:ListItem Value="02">February</asp:ListItem>
- <asp:ListItem Value="03">March</asp:ListItem>
- <asp:ListItem Value="04">April</asp:ListItem>
- <asp:ListItem Value="05">May</asp:ListItem>
- <asp:ListItem Value="06">June</asp:ListItem>
- <asp:ListItem Value="07">July</asp:ListItem>
- <asp:ListItem Value="08">August</asp:ListItem>
- <asp:ListItem Value="09">September</asp:ListItem>
- <asp:ListItem Value="10">October</asp:ListItem>
- <asp:ListItem Value="11">November</asp:ListItem>
- <asp:ListItem Value="12">December</asp:ListItem>
- </asp:dropdownlist>
- </td>
- </tr>
- <tr>
- <td>
- <asp:TextBox ID="txtdescription" Runat="server" Width="600" Height="150" TextMode="MultiLine"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td>
- <asp:Button ID="cmdSubmit" Text="Submit" Runat="server"></asp:Button>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </HTML>