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

Go to topic 50079

Return to index page 168
Return to index page 167
Return to index page 166
Return to index page 165
Return to index page 164
Return to index page 163
Return to index page 162
Return to index page 161
Return to index page 160
Return to index page 159