James Asante 0 Newbie Poster

I want to update the current user to UserName field in my database from a login control which identifies the current user as
<% = CheckLoginStatus1.CurrentUser.UserName%>.
I have a datagrid with the update function. It is able to pick the current user, but the database UserName field does not get updated on update.

Please find below my attempt.

ItemTemplate
<input type="text" name="UserName" value="<% = CheckLoginStatus1.CurrentUser.UserName%>" />

EditItemTemplate
<asp:TextBox runat="server" id="UserName" Text='<%# DataBinder.Eval(Container.DataItem,
"UserName") %>'/>

No error messages are returned. I am using Dreamweaver 8.
Please help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.