Home of page afer update DetailsView

M

Mario

Every update of DetailsView jump the user on a beginning of the page. How to
turn off that function?
And the other thing which I wish to disable is usage of "enter" key, because
user can delete the row instinctively pressing the "enter" key. I try to
catch the event like this:
protected void ListView1_ItemCanceling(object sender,
ListViewCancelEventArgs e)

{

Console.WriteLine("Item Canceled");

}

protected void ListView1_ItemCommand(object sender, ListViewCommandEventArgs
e)

{

Console.WriteLine("Item command");

}

protected void ListView1_ItemDeleted(object sender, ListViewDeletedEventArgs
e)

{

Console.WriteLine("Item Deleted");

}

protected void ListView1_ItemInserting(object sender,
ListViewInsertEventArgs e)

{

Console.WriteLine("Item Inserting");

}

protected void ListView1_ItemInserted(object sender,
ListViewInsertedEventArgs e)

{

Console.WriteLine("Item Inserted");

}



But nothing has happens in a console.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top