0

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

1 Answer 1

0

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

2
  • Thanks paul for your reply but 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??
    – user436089
    Sep 2, 2010 at 10:44
  • 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 - api.jquery.com/jQuery.ajax - then work out what you want to happen.
    – stack72
    Sep 2, 2010 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.