c# - ASP.net ListView Access controls in ItemUpdating event -
I'm missing something here ...
I need to reach the values of controls Item which is leaving the editing mode, thus firing item updating.
I found how to get a significant value so that I can know which record I need to update in the database. The problem is that I can not reach the values of controls on the editing line.
The edit template includes some checkboxes, a dropdown and a text box, these values need to be used so that I can update the records.
When watching events, nothing shows up.
I think I'm seeing something important here, some help will be easy.
You use "ListView.EditItem.FindControl (" X ")" to access direct controls can do.
Protected sub list view_item update (object as same sender, same as e.e. as Web.UI.WebControls.ListViewUpdateEventArgs) ListView.ItemDigDownList = ListView.EditItem FindControl ("DropDownListddl") Lblwarning.Text = Dropdown Listlist Selected preference ended sub
Comments
Post a Comment