Web Forms :: Updating A Web Form / Call A SUB After Closing The "child" Window?
Jan 13, 2010
I have an ASP.NET web form with a button which opens a new browser window (without leaving the main window) using Javascript when it is clicked. The user is allowed to interact with this new opened window which has a button that closes it but before closing it, some server-side code is executed and the main form shoud be updated according to what the user did in the browser window.
Everything is working just fine except that I do not know how to update the main window. It has a SUB that does it while I am working with this main window alone but I do not know how to call such a SUB after closing the "child" window.
View 4 Replies
Similar Messages:
Feb 25, 2011
On my xyz.aspx page I added a Iframe and set it src to abc.aspx page, when I load xyz page Iframe is alos loaded as well abc.aspx page inside it. I am able to call a function from abc.aspx to xyz.aspx function, the question is how can I call abc.aspx function from my xyz.aspx page?
View 1 Replies
Mar 22, 2010
I have a webpage which does a lot of processing(for few minutes) and finally produces a result.
i have one more page which contains results of all previous operations.
Both pages are opened from a parent page. what i want is ,As soon as first page finishes its task , the result should be reflected in second webpage automatically.(Or we can say it should update the information according to the latest operation).So i need a page refresh at this instant. I don't want to do a regular interval refresh through Meta tag etc. Is it possible?
View 9 Replies
Oct 18, 2010
i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?
View 2 Replies
Feb 22, 2011
I have a page (parent) that open up a popup window using window.open javascript. User will then work on the popup window and the result will be stored in a session variable. When the user close the popup window, how can I put the value of the session variable back to the server control textbox of the parent window?
View 3 Replies
Oct 22, 2010
Im having the flowwing problem i have a gridview that i want to list many records when i click on a row iwant to be able to click on a button and go to the form of this record in order to update it. All the navigation works fine.I click on the button and then using javascript i window.open the page that has the form the problem is that when the new page loads the parent page (the page that has the gridview refreshes and because there are many records it is really annoying how can i use window open to pop up a child page without having the parent window to refresh.
Because im using all this in a dotnetnuke framework i have tried enabling and disabling partial rendering to the parent page page but always refreshes when i open the child window
View 2 Replies
Jul 8, 2010
I have a web app that opens various child windows from one main window. The main window itself changes based on user selections. How do I detect and close any child windows when the main window closes? I suspect I could use the session object to track the instances.
View 3 Replies
Mar 18, 2010
I have to develope on popup page which is popout from parent page,popup page have one grid with radio button,according to selection of particular radio button of gridview row and user click on select button popup should close and on parent page we have ID value of selected row of popup page.
According that ID value i have to fill some details in Parent page.
Popup
Name Email
RBT ABC A@yahoo.com
RBT DEF B@yahoo.com
SELECT BUTTON
So my query is how to close popup on select button and pass checked row id value to parent page and on parent page how can we get that id value and display some details.
View 2 Replies
Feb 23, 2010
in my application i need call new form on click of node in tree view control in asp.net 3.5 c#.
View 1 Replies
Mar 10, 2010
I have a web page (aaaaaa.aspx) which opens a popup window (bbbbbb.aspx). From the popup window vb.net code, I do a Response.Redirect("cccccc.aspx") to another page. On this page I have a button and when I click it, I want to close this page (cccccc.aspx) and refresh the original page (aaaaaa.aspx) so that the changes can be seen. Presently, the page cccccc.aspx close but the original page (aaaaaa.aspx) does not refresh. Normally this works fine with just a popup window. But the response.redirect is what messing me up, I think. I did not write this code but just trying to make it work. Here is the code I am using in the button_click event of page cccccc.aspx:
Response.Write("<script>window.opener.document.forms[0].submit();</script>")
Response.Write("<script>self.close();</script>")
View 4 Replies
Aug 22, 2010
I have created two user controls(Say uc1.ascx and uc2.ascx). I have wrapped second user control(uc2.ascx) as a DIV in first user control(uc1.ascx), to populate uc2.ascx as a JQUERY modal popup. I have created a Webpart(class file) where I specifed the first user control path. Now in an aspx page, I have added this webpart as a webpart zone. The syntax loks somethng like this.
<Webpart manager></Webpartmanager>
<WebpartZone>
<Zonetemplate>
<cc1:Customer...>
</ZonTemplate>
</WebpartZone>
In my first user control(uc1.ascx), I have gridview. Now when I clik on a button in a webpart, a JQuery modal popup comes where I fill the details and after saving the details, the popup closes. But the webpart is not refreshed due to which I am not able to get the updated data in the grid view.
How can I refresh a particular webpart when I have multiple webparts in the same page in order to get updated data?
View 1 Replies
Feb 5, 2010
My default page has a usercontrol that opens up a modal to allow updates. When the user closes the modal window I want the usercontrol that resides on the default page to update.
it looks like this
default.aspx has userControl1
user can open up a modal from userControl1
modal has textboxes for updating
when user closed modal I want to then refresh userControl1 on the default.aspx page without reloading the entire default.aspx page.
View 3 Replies
Nov 17, 2010
i have a page Parent.aspx,, and this is responsible to open the window as a model dialog(model.apsx). model.apsx has OK button when we click on this button then server side method called to save the data. while saving the data it return the id of saved data. i need this id on my Parent.aspx.Cs file, so how can i get this id on my Parent.aspx.cs file?
View 5 Replies
Dec 3, 2010
I have the following HTML
<tr>
<td class="label" valign="top">
Affiliate Party
</td>
<td class="field">
<input type="hidden" name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyId" id="AffiliatePartyId" />
<input name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyName" type="text" id="AffiliatePartyName" class="PartyLookup" />
</td>
</tr>
and the following Javascript/jQuery
$(".PartyLookup").after("<img src='Images/book_open.png' class='PartyLookupToggle' style='padding-left:4px;' />");
$(".PartyLookupToggle").click(function () {
window.open("PartySearch.aspx", "PartySearch", "width=400,height=50");
return false;
});
I need to be able to flag ANY PartyId input field with class="PartyLookup" so that it will modify the DOM and include the image next to the input field. The popup window returns data to populate both the hidden and text fields, but since the click() is generic I need to pass it the ID of the input field.
View 2 Replies
May 20, 2010
Refresh the Parent Window. I open the child window,I want that on close button click on child window,parent window refreshes
Code:
[code]....
I searched all on the net & find the above soln,But its not refreshing.when i click on button1,then some Pop up appears see in Pic(with buttons Retry & Cancel). When i click on Retry again the child window loads Then again i click on button1,again popup appears & so on & on.
View 10 Replies
Jul 29, 2013
I have a page, which contains 2 textboxes. When i click on the first textbox, i have to open a child window (tool), that contains a gridview control with 2 columns (corresponding to the 2 textboxes). When the user clicks on any row in the gridview, it should send back the 2 column values back to the parent window to the corresponding 2 textboxes. how do i achieve this?
View 1 Replies
Sep 2, 2010
I've got a Jquery function that I wrote which blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time.
The environment is ASP.NET (VB). We don't technically use master pages, but we do have a parent page in which our header, footer and nav reside, and my Jquery code is called from that window, loaded via an IFrame.My problem is that if one is working in a child window, the parent window doesn't recognize that the system is in use, and will automatically engage at the allocated time.I've tried everything under the sun I can think of and nothing works properly. My event handler is working, and it does call the parent window function, but the timer is not being reset.
I have this function in the parent window:
<script language="javascript" type="text/javascript">
function window.reportChildActivity() {
SESSION_ALIVE = true; [code]....
View 1 Replies
Sep 24, 2010
I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.
View 2 Replies
Sep 3, 2010
I am using this code.This pop up window pops up when I clicks a button on the main page.Now I want the pop up window to be closed if the password is successfully changed and reload the main page,but if the password is not changed then refresh the pop up window again.
Here is the code.....
[code]....
View 4 Replies
Sep 4, 2010
I am using this code.This pop up window pops up when I clicks a button on the main page.Now I want the pop up window to be closed if the password is successfully changed and reload the main page,but if the password is not changed then refresh the pop up window again. I used javascript for form validationenter code here Here is the code.....
<asp:Textbox id="curnt_paswrd" textmode="Password" runat="server" size="30" />
<asp:Textbox id="new_paswrd" textmode="Password" runat="server" size="30" />
<asp:button ID="btnChange" class="submit-button"
OnClientClick="return validate()" runat="server" Text="Change"
onclick="btnChange_Click" />
View 1 Replies
Feb 7, 2011
i have changed my iframe popup window into as aspx page.so now i how to relaod my parent window.
View 4 Replies
May 31, 2010
I have a popup window where i store an a arraylist in sessionvariable, when clicking on closebutton (the X in the right top corner) or the cmd input button in the form i want to remove the sessionvariable containing my arraylist. How can i do this?
The popup window is currently closed by a javascript:
function cmdClose_onclick() {
self.close();
}
View 2 Replies
Mar 24, 2011
Previously form id in child pages was aspnetform,suddenly now the id has changed to form1, now the problem is there are lots of script used with reference to id aspnetform and they are giving error. So i want to change or override the form1 name to aspnetform to make it work again
View 4 Replies
Dec 9, 2010
Is it possible to use buttons in a modal popup window and not have the window close after the postback?
View 2 Replies
Sep 6, 2010
I have a collapsible panel extender inside a modal window, my problem is that whenever I click on the link button (to expand my panel), the window closes.
Does anyone know of a way to avoid this?
View 1 Replies