473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Force Postback

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
Nov 17 '05 #1
1 4299
Julie,

Here are some good javascripts for refreshing a page:

http://grizzlyweb.com/webmaster/java...h.asp#version2

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Julie Barnet" <ba*****@pr.fraserpapers.com> wrote in message
news:43**************************@posting.google.c om...
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom | last post by:
Does anyone know how ot force a postback in the codebehind? Thanks Tom
0
by: Julie Barnet | last post by:
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() {...
1
by: Andreas Klemt | last post by:
Hello, when SmartNavigation is True how can I force after Postback that the page goes to the top because of the error message or where should I put the error message (top or button)? With old...
3
by: aaa | last post by:
I am checking if a certain object is null and if it is I need to go back to ther server and get this object can I force a postback in the code behind and if so how?
5
by: Jeronimo Bertran | last post by:
I have a DataGrid that gets filled based on a filter which is defined by the values that the user selects on several controls. When the page postbacks after changing the selection on the filter...
2
by: Byron Hopp [MCS] | last post by:
How do you force a postback, we have a button to save our users entry, but the button does not have a postback property (like the dropdownlistbox). Is there a way to force a postback? Byron...
6
by: Shawn | last post by:
Any ideas how I can have a button click on one open page force a postback on a different page.
1
by: Luqman | last post by:
I have created a page1.aspx with a button, when I click on button, page2.aspx is opened on top of page1.aspx as a New Popup Window using Javascript Window.Open. Now, when I select the data on...
1
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
Is there a way to force a "traditional" full page postback in AJAX? I have a page with multiple UpdatePanels and I usually call UpdatePanel.Update() to do a partial postback, but I have one...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.