Force Postback

J

Julie Barnet

I would like to be able to force a postback when a user tabs off of a
user control. I currently have the following code:

<script language="JavaScript1.1"><!--
function keyPressed() {
key=event.keyCode;
if (key==9)
{
**WOULD LIKE TO FORCE A POSTBACK HERE ON cboTest
**WOULD LIKE TO MOVE TO txtNext HERE. DO I NEED TO PASS THE
NEXT FIELD IN AS A PARAMETER?
}
return true;
}
//--></script>

<mystuff:combobox id="cboTest" runat="server" onKeyDown="keyPressed()"<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
</mystuff:combobox>
<asp:textbox id="txtTest" runat="server" />

Thanks in advance
Julie Barnet
 

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,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top