开发者

ASP.Net Ajax TextBox Enter Key Click Go to server

I have a textbox i need to go to the server when Enter Key is clicked with ajax to update a label开发者_JS百科 on the page


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜