Dear All
I want to call dopostback of parent window from child window.
Scenerio
I am opening window from a page, and i have datatable in session which is
updating at parent window and at child window both.
when I close the child window and reloads the parent window from javascript
it lost all information because it walks into
"Not Ispostback" condition para.
How i can reload the parent page which did not walk into this condition
para.
Regards
Abid 3 2928
Normally, you would expect to do this with
window.opener.d ocument.forms[0].submit();
but this would not work because the IE implementation of form.submit() is
different from the standard implementation.
Nevertheless, there's a clever way to simulate a postback on the parent
window in javascript.
Put an invisible button to the parent page. Something like below;
<input type="submit" name="fakeButto n" style="DISPLAY: none" value="Submit">
Then from the child window, do the following;
window.opener.d ocument.forms[0].fakeButton.cli ck();
This will submit the form back to itself, hence you have a postback.
Hope this helps,
Ethem Azun
"Abid Ali" wrote: Dear All
I want to call dopostback of parent window from child window.
Scenerio I am opening window from a page, and i have datatable in session which is updating at parent window and at child window both. when I close the child window and reloads the parent window from javascript it lost all information because it walks into "Not Ispostback" condition para.
How i can reload the parent page which did not walk into this condition para.
Regards Abid
> window.opener.d ocument.forms[0].submit(); but this would not work because the IE implementation of form.submit() is different from the standard implementation.
This is news to me. Can you elaborate?
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Ethem Azun" <Et*******@disc ussions.microso ft.com> wrote in message
news:4C******** *************** ***********@mic rosoft.com... Normally, you would expect to do this with
window.opener.d ocument.forms[0].submit();
but this would not work because the IE implementation of form.submit() is different from the standard implementation.
Nevertheless, there's a clever way to simulate a postback on the parent window in javascript.
Put an invisible button to the parent page. Something like below;
<input type="submit" name="fakeButto n" style="DISPLAY: none"
value="Submit"> Then from the child window, do the following;
window.opener.d ocument.forms[0].fakeButton.cli ck();
This will submit the form back to itself, hence you have a postback.
Hope this helps,
Ethem Azun
"Abid Ali" wrote:
Dear All
I want to call dopostback of parent window from child window.
Scenerio I am opening window from a page, and i have datatable in session which
is updating at parent window and at child window both. when I close the child window and reloads the parent window from
javascript it lost all information because it walks into "Not Ispostback" condition para.
How i can reload the parent page which did not walk into this condition para.
Regards Abid
Hi Kevin,
From below, you can see the The HTML DOM Level 2 standard. It says that
calling form.submit() should do the same as button.submit() . http://www.w3.org/TR/2003/REC-DOM-Le...ml#ID-76767676
This means, when you submit a form, the onsubmit event should normally fire.
But this does not happen if you use IE.
I use the workaround I specified before to get over this problem, simply
"clicking" on an invisible submit button on the form, from outside. You can
test this behavoir by creating two pages in which one pops the other up and
the popup tries to submit the opener form.
Ethem Azun
"Kevin Spencer" wrote: window.opener.d ocument.forms[0].submit();
but this would not work because the IE implementation of form.submit() is different from the standard implementation.
This is news to me. Can you elaborate?
-- HTH, Kevin Spencer ..Net Developer Microsoft MVP I get paid good money to solve puzzles for a living
"Ethem Azun" <Et*******@disc ussions.microso ft.com> wrote in message news:4C******** *************** ***********@mic rosoft.com... Normally, you would expect to do this with
window.opener.d ocument.forms[0].submit();
but this would not work because the IE implementation of form.submit() is different from the standard implementation.
Nevertheless, there's a clever way to simulate a postback on the parent window in javascript.
Put an invisible button to the parent page. Something like below;
<input type="submit" name="fakeButto n" style="DISPLAY: none"
value="Submit"> Then from the child window, do the following;
window.opener.d ocument.forms[0].fakeButton.cli ck();
This will submit the form back to itself, hence you have a postback.
Hope this helps,
Ethem Azun
"Abid Ali" wrote:
Dear All
I want to call dopostback of parent window from child window.
Scenerio I am opening window from a page, and i have datatable in session which is updating at parent window and at child window both. when I close the child window and reloads the parent window from javascript it lost all information because it walks into "Not Ispostback" condition para.
How i can reload the parent page which did not walk into this condition para.
Regards Abid
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matthew Louden |
last post by:
I created simple ASP.NET web application to test how AutoPostBack property
in a web control works.
I set AutoPostBack property to be true of a web control. When I run the
application, here's the sequences when I step through the program:
1. Page loaded to the browser
2. Page_Load method is called with non-postback event
3. The user has certain actions on a control
4. Page_Load method is called with postback event
|
by: RAJ |
last post by:
In our multi-tier application, we have several ASP.NET user controls which
will update the same data source provided by middle tier logic.
In this particular scenario we have one user control displaying the contents
of the data source, whilst another control updates the datasource via a
command buttons implementation of 'Click', an event raised in the 'Handle
Postback Events' stage of the control execution life cycle (via the...
|
by: walesboy |
last post by:
greetings -
I have a btnSubmit button with a Handles btnSubmit.click which works great
if all the user does is click that button.
But, if the user ALSO changes a text box on the page (which has it's own
event and autopostback=true) before clicking submit then it fires the text
box event but never fires the btnSubmit event. (I follow it in the trace).
Surely both event handlers should be fired? Any hints on identifying what I
|
by: Jim Hammond |
last post by:
It would be udeful to be able to get the current on-screen values from a
FormView that is databound to an ObjectDataSource by using a callback instead
of a postback. For example:
public void RaiseCallbackEvent(string eventArgs)
{
// update the data object with the values currently on screen
FormView1.UpdateItem(true);
}
|
by: Timbo |
last post by:
Hi all,
This is my first message here so i'll try and include all the
information that will help you help me out, if possible.
Basically I am using C# in ASP.NET 2.0 and have a Repeater control in
my aspx page with two image buttons, one for an edit command, another a
delete command. Here is a cut down code fragment.
...
| |
by: Wizzard |
last post by:
I have a repeater with and imagebutton on a page useing VS2005 ASP.Net 2.0
<asp:Repeater ID="Repeater1" runat="server" >
<ItemTemplate>
<div>
<asp:ImageButton ImageUrl="button.gif" ID="ImageButton1"
runat="server" />
<p><%# Eval("Name") %></p>
</div>
</ItemTemplate>
|
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 processed by the web server. I am still
struggling to understand this postback logic, and hope that some kind
gurus out there could help me clarify the confusion I have.
|
by: Nathan Sokalski |
last post by:
I have a DataList in which the ItemTemplate contains two Button controls
that use EventBubbling. When I click either of them I receive the following
error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using
<pages enableEventValidation="true"/in configuration or <%@ Page
EnableEventValidation="true"...
|
by: Tony Girgenti |
last post by:
Hello.
I'm trying to undetrstand ASP.NET 2.0 and javascript.
When i have a button and i click on it and i see the web broswer progress
bar at the bottom do something, does that mean that there is postback
occurring? Does that mean a round trip to the server occurred?
I keep reading javascript articles and tutorials that say "improve the
client-side experience to be more responsive and quicker", but the articles
|
by: John Kotuby |
last post by:
Hi guys,
I am converting a rather complicated database driven Web application from
classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The
original ASP application works quite well, so at times it is tempting just
to port parts of it over mostly as-is. In fact, one MSDN article I read
suggested using straight HTML wherever possible to make the app more
efficient and less resource demanding.
On one page there are 2...
|
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...
| |
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,...
|
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...
|
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |