473,394 Members | 1,740 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,394 software developers and data experts.

Trigger PostBack from External webpage?

I open a popup from an aspx page and when done working in the popup i I need
to update the aspx page in the background. I know how to get to the page in
the background thru JavaScript (window.opener.. ) but how do I trigger a
postback that will keep the viewstate of that page?

best regards/
Lars Netzel
Nov 19 '05 #1
2 1503
Lars,

You need to call the submit method of the form in your page. Try

window.opener.myForm.submit();

Eliyahu

"Lars Netzel" <ui****@adf.se> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I open a popup from an aspx page and when done working in the popup i I need to update the aspx page in the background. I know how to get to the page in the background thru JavaScript (window.opener.. ) but how do I trigger a
postback that will keep the viewstate of that page?

best regards/
Lars Netzel

Nov 19 '05 #2
thank you that worked nice.

/Lars
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
Lars,

You need to call the submit method of the form in your page. Try

window.opener.myForm.submit();

Eliyahu

"Lars Netzel" <ui****@adf.se> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I open a popup from an aspx page and when done working in the popup i I

need
to update the aspx page in the background. I know how to get to the page

in
the background thru JavaScript (window.opener.. ) but how do I trigger a
postback that will keep the viewstate of that page?

best regards/
Lars Netzel


Nov 19 '05 #3

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

Similar topics

1
by: Ole Nielsen | last post by:
Hi I have an application written in VB.NET that needs to trigger an action on a Webpage. For other actions in communicating I've been using WebRequest.Create / WebRequest.Method, but I dont...
0
by: Dave Sisk | last post by:
I've created a system or external trigger on an AS/400 file a.k.a DB2 table. (Note this is an external trigger defined with the ADDPFTRG CL command, not a SQL trigger defined with the CREATE...
0
by: JohnO | last post by:
Thanks to Serge and MarkB for recent tips and suggestions. Ive rolled together a few stored procedures to assist with creating audit triggers automagically. Hope someone finds this as useful as...
4
by: NWx | last post by:
Hi, How can I make a page to postback automatically, using JavaScript? I need a JavaScript function as handled to page_load, but I don't know what code to write to trigger postback. Can...
7
by: Anand | last post by:
Hi All, The postback on my desktop stopped working. I am trying to run the webapplication locally on my desktop and the Postback on my home page won't trigger on any of my dropdown selections. The...
5
by: Mike Nolan | last post by:
I have a before insert trigger that updates a value in another table. It appears that I cannot depend upon that update having taken place in an after insert trigger on the first table. (The one...
4
by: My SQL | last post by:
Hi Can I trigger an external program to run when a new record is added to the mysql table? The external program is in C and instead of scanning the table continuously for new insertions, it...
11
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
6
by: Mark B | last post by:
I have a function that looks up a SQL table to see if a search term matches. It works fine but so far there are two things yet to work: 1) After entering a search term and pressing Enter, nothing...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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
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,...
0
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...
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...

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.