Mustang
09-20-2005, 10:59 AM
I have a textbox control in a webform that I am trying to get to prepopulate a date with.
In the Code behind I have a page load script to get the datetime:
Rec_Date.Text = System.DateTime.Now.ToSTring();
Month(Date) & "/" & Day(Date) & "/" & Year(Date) ;
The control looks like this:
<asp:TextBox ID="Rec_Date" runat="server" Text='<%# Bind("post_date") %>'></asp:TextBox>
The error I am getting is:
The name 'Rec_Date' does not exist in the current context
Can someone tell me what this means and perhaps how to fix it?
Thanks alot!
In the Code behind I have a page load script to get the datetime:
Rec_Date.Text = System.DateTime.Now.ToSTring();
Month(Date) & "/" & Day(Date) & "/" & Year(Date) ;
The control looks like this:
<asp:TextBox ID="Rec_Date" runat="server" Text='<%# Bind("post_date") %>'></asp:TextBox>
The error I am getting is:
The name 'Rec_Date' does not exist in the current context
Can someone tell me what this means and perhaps how to fix it?
Thanks alot!