Hello,
I have shortened the textbox to txtboxTimeEntry. Also, I have delceared the textbox by placing a textbox into the main Content Area, before the FormView Section. This is the only way that I know how to do this at the present time. I have read an article (
http://www.eps-software.xn--comwww-y...0503051&page=1), but, I am still not 100% clear on how to declear the textbox within the FormView or DataGrid Section.
************************************************** *************
<%@ Page Language="
VB" MasterPageFile="~/DefaultMembers.master" AutoEventWireup="false" CodeFile="subCustomer.aspx.
vb" Inherits="MemberPages_subCustomer" title="Customer Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
<h4>
Customer Profile<br />
</h4>
<asp:TextBox ID="txtboxTimeEntry" runat="server" OnTextChanged="txtboxTimeEntry_TextChanged"
Text='<%# Bind("time_stamp_entry") %>' Visible="False" Width="37px"></asp:TextBox>
<asp:FormView ID="FormView1" runat="server" DataKeyNames="CustomerID" DataSourceID="AccessCustomerProfile"
DefaultMode="Insert" Width="566px" CellPadding="4" ForeColor="#333333">
<InsertItemTemplate>
************************************************** ***************
Protected Sub txtboxTimeEntry_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Dim dtNow As DateTime = DateTime.Now
txtboxTimeEntry.Text = dtNow.ToString
End Sub