How to launch a trigger in the update pannel with a return key pressed in a textbox?

J

jb

Hi!

I whould like to lanunch an async postback trigger from an updated panel
when a user presses the key return with the cursor in a textbox, is that
possible?

Thanks,

Xus
 
G

Guest

Hi there,

Quick workaround would be calling click() method of associated button (if
there is one), or adding an invisible (width=0px, height=0px) button, calling
its click() method as soon as you discover enter key has been pressed. I'm
not sure if you could easly use ClientScript.GetPostBackEventReference to
force dopostback because AJAX framework may validate actuall controls placed
within updatepanel (i might be wrong here, so please experiment a little bit
with ClientScript.GetPostBackEventReference).

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top