You could use client side scripting, if you capture the keydown (onkeydown)
event of the file control then you can return without updating the text
element.
in your form 'body' define the following:
<body onkeypress="return onkeyPress(event);">
then you can write script to return onkeypress (I use javascript)
function onkeyPress(e)
{
var key = window.event ? e.keyCode : e.which;
if (key == 13)
StartClick();
e.cancelBubble = true;
e.returnValue = false;
return false;
}
the above will return and and not update any controls. However if 'Enter' is
pressed it will run the 'StartClick' funtion.
"Vikram" wrote:
How can i restrict user from entering anything in file name of input type
file (upload) control. I want user can ionly select file using browse button