The ListView raised event ItemEditing which wasn’t handled.

Error:
The ListView ‘ListView1’ raised event ItemEditing which wasn’t handled.

Resaon:
if the CommandName of a clicked button is “Edit” then it will put the ListView in the Edit mode, try modifying the CommandName=”Edit” to something like “modify”… its so easy 🙂

Advertisements

Datalist With Empty ROW

Showing Empty Row is just simple… only you need to do this in your asp.net page.

Datalist Empty Row

Steps to do

theDataList.DataSource = pagedData
theDataList.DataBind()

If theDataList.Items.Count = 0 Then
theDataList.Visible = False
lblError.Visible = True
Else
theDataList.Visible = True
lblError.Visible = False
End If