Hello
I have a .net page that uses a textbox as an event to do a postback and call a webservice that returns a dataset and binds it to a datagrid
my only problem is that I call the post back OnKeyUp and when i try and direct focus back to the textbox it is pushed to the first letter in the box and when you hit an arrow key to move or hit backspace the onkeyup event fires and the process starts again;(
so.. how can I direct focus to after the last letter in textbox and how can I trap the backspace key so this won't fire?
Thanks in advance for any help or advice and sorry in advance if im not being clear as to what i want or If I dont sound educated enough in the matter at hand
MCP, .Net Solutions Development <%_%>
I have a .net page that uses a textbox as an event to do a postback and call a webservice that returns a dataset and binds it to a datagrid
my only problem is that I call the post back OnKeyUp and when i try and direct focus back to the textbox it is pushed to the first letter in the box and when you hit an arrow key to move or hit backspace the onkeyup event fires and the process starts again;(
so.. how can I direct focus to after the last letter in textbox and how can I trap the backspace key so this won't fire?
Code:
<script type="text/javascript" language=javascript>
onload=function(){
document.getElementById("TextBox4").focus();
}
</script>
Thanks in advance for any help or advice and sorry in advance if im not being clear as to what i want or If I dont sound educated enough in the matter at hand
MCP, .Net Solutions Development <%_%>