Hi Was wondering if anybody could help me with this.
I have a detailsview with a template column called Entered By. The details view is set to default to insert data mode.
Everything works fine. Howvever I have a template column
<
asp:TemplateField HeaderText="EnteredBy" SortExpression="EnteredBy"><EditItemTemplate> <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("EnteredBy") %>'></asp:TextBox> </EditItemTemplate> <InsertItemTemplate>
<asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("EnteredBy") %>'></asp:TextBox>
</InsertItemTemplate> <ItemTemplate> <asp:Label ID="Label13" runat="server" Text='<%# Bind("EnteredBy") %>'></asp:Label> </ItemTemplate> </asp:TemplateField>
This works fine. However, I would like the field entered by, to have a default value of the windows username so I changed the code to the following...
<InsertItemTemplate>
<asp:TextBox ID="TextBox14" runat="server" Text='<%#Request.LogonUserIdentity.Name%>'></asp:TextBox>
</InsertItemTemplate>
When the page loads up the textbox entered by displays my windows username, however, it does not enter this value back to the database. If I change it back to <%# bind("EnteredBy")%> and enter a value in manually it works fine. Please could somebody help me with this I would really appreciate it
Thanks
Marcus

Details View Temaplate Column
Juniorbl
Hi,
ASP.Net questions would be best posted to forums.asp.net. You would have a better chance of getting an answer there.
cheers,
Paul June A. Domag