|
Subject:
|
Update using the datagrid in C#
|
|
Posted By:
|
jka_za
|
Post Date:
|
9/22/2006 6:02:49 AM
|
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. Please help.
ja
|
|