473,385 Members | 1,218 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,385 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 4296
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.