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.
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.