Hi,
You can use this method to check whether enter key is pressed or not.
private void OnKeyDownHandler(object sender, KeyEventArgs e)
{
if (e.Key == Key.Return)
{
textBlock1.Text = "You Entered: " + textBox1.Text;
}
}
or you have to try client side scripts in this way on onkeypress.
function (event) {
if (event.which == 13 || event.keyCode == 13) {
return false;
}
return true;
});
Implement it according to your need.
Good Luck