E
Eric
Hi,
I have a multiview view with a panel on it and in that panel a table with
several controls (2 dropdown,3 textbox, 2 button, 1 gridview).
When data is entered in one textbox and button1 is pressed, it puts the data
in a gridview.
Since the data in the textbox is a number I want it to respond to the Enter
key.
Hitting the enter key should do the same as the button.
I have tried it by putting the panels defaultbutton on that button but while
the page does a refresh, it does not go to the button click event.
I have given the textbox an argument for the onkeydown event, but it also
doesn't do it. (
txtVerplaatsenArtikelNummer.Attributes.Add("onkeydown", "if(event.which ||
event.keyCode){if ((event.which == 13) || (event.keyCode == 13))
{document.getElementById('" + btVerplaatsenNaarLijst.UniqueID +
"').click();return false;}} else {return true}; ")
)
How can I solve this?
I cannot use the textchanged event because I need to clear the textbox after
the data has been put in the table.
please help me.
rg,
Eric
I have a multiview view with a panel on it and in that panel a table with
several controls (2 dropdown,3 textbox, 2 button, 1 gridview).
When data is entered in one textbox and button1 is pressed, it puts the data
in a gridview.
Since the data in the textbox is a number I want it to respond to the Enter
key.
Hitting the enter key should do the same as the button.
I have tried it by putting the panels defaultbutton on that button but while
the page does a refresh, it does not go to the button click event.
I have given the textbox an argument for the onkeydown event, but it also
doesn't do it. (
txtVerplaatsenArtikelNummer.Attributes.Add("onkeydown", "if(event.which ||
event.keyCode){if ((event.which == 13) || (event.keyCode == 13))
{document.getElementById('" + btVerplaatsenNaarLijst.UniqueID +
"').click();return false;}} else {return true}; ")
)
How can I solve this?
I cannot use the textchanged event because I need to clear the textbox after
the data has been put in the table.
please help me.
rg,
Eric