473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript1.1"><!--
function keyPressed() {
key=event.keyCo de;
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:combob ox id="cboTest" runat="server" onKeyDown="keyP ressed()"

<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
</mystuff:combobo x>
<asp:textbox id="txtTest" runat="server" />

Thanks in advance
Julie Barnet
Nov 17 '05 #1
1 4325
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.fra serpapers.com> wrote in message
news:43******** *************** ***@posting.goo gle.com...
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="JavaS cript1.1"><!--
function keyPressed() {
key=event.keyCo de;
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:combob ox id="cboTest" runat="server" onKeyDown="keyP ressed()"

<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
</mystuff:combobo x>
<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
26186
by: Tom | last post by:
Does anyone know how ot force a postback in the codebehind? Thanks Tom
0
407
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() { 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
1
353
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 Browser SmartNav is disabled. Thanks for any help Andreas
3
46521
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
4470
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 controls, the DataGrid refreshes itslef. Now, I also need to refresh the DataGrid if I detect that something "external" has changed (keeping the filter that the user is using). For this, I have created a page that partially refreshes itslef in...
2
1843
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
2404
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
2050
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 page2.aspx and close it with Javascript.window.close(), the page1.aspx does not postback ? Any idea how can I force the page1.aspx to PostBack. Best Regards,
1
10273
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 condition that requires an update to several controls that are not in an UpdatePanel and it makes sense to post the entire page for a refresh. I don't really want to put the entire page in an update panel to call the Update method to refresh the...
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6164
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.