I have a textbox i need to go to the server when Enter Key is clicked with ajax to update a label on the page
A:
if you call a javascript function something along the lines of
<script language="javascript" type="text/javascript">
function HandleKeyPress(sender, eventArgs)
{
if (eventArgs.get_domEvent().keyCode == 13)
{
b//call method here to do what you want on enter button press
}
}
this may help you on the way to finding what you want to do
PaulStack
2010-09-02 09:13:15
Thanks paul for your replybut what i ment that i need inside your If statement to write code to go to the server and bring databack to update a textbox , i don't know how yet??
2010-09-02 10:44:27
i think what you need to do is to figure out what your trying to call and then explore the use of jQuery to call a service - http://api.jquery.com/jQuery.ajax/ - then work out what you want to happen.
PaulStack
2010-09-02 10:59:21