Web Forms :: Refresh Webpage After Closing Popup Window?

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


Similar Messages:

Web Forms :: Refresh Gridview With Updated Data After Closing Modal Popup

Mar 9, 2010

I have a gridview binded with data and i am providing to user edit command button in gridview s row command event i opened the new page in modal popup to edit the selected id record and after modify i close the popup here i want to refresh gridview with updated data. here is the code i used to open editdocument page in modal popup from gridview row command event

Dim webLink As String = "EditDocument.aspx?ID=" & gv.DataKeys(Item_ID).Values(0) & "&Mode=" & 1
ScriptManager.RegisterStartupScript(Me, GetType(String), " Done", "window.open( '" & webLink & "', '','resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no, height=580px, width=480px,left=350px,top=100px' );", True)

View 2 Replies

Web Forms :: Webpart Is Not Refreshed When Closing A JQuery Popup Window?

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

How To Remove Session Variable When Closing Popup Window

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

AJAX :: Click Button In Modal Popup Without Window Closing

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

Web Forms :: Refresh The Parent Window Of A Webpage ?

Sep 24, 2010

I have tried lot of different methods to refresh the parent webpage of a pop up window.

All of my methods failed for the moment using javascript .

Basically i am opening a new window from a Sharepoint webpage.

When I click "submit" on the op up window the sharepoint webpage should be refresh.

So far i have to do manually F5.

How can i 4refresh the parent webpage ?

View 15 Replies

Web Forms :: Refresh And Close Popup Window?

Mar 5, 2010

I have all of my code into one ASPX file. Called Scheduler.aspx. I am using the DayPilot scheduler and the Obout Flyout. But i moved it all to one page to make it simpler. But one thing I am having probelms with is; when I save my popup it should close and refresh the page. And when I hit the close link it should close (which it does) and then refresh the popup when I click on it to open again (which it doesnt). Since I have this all on one form and I am calling the popup using the flyout I can't figure out how to do these.

My page is called: Scheduler.aspx

My Scheduler is called: dps

My flyout is called: EventFlyout

Right now I have the flyout opening from a label. So when I click on the label my flyout opens, I insert data and it saves to the database. But i have to close my browser and open another to get the data I just imputed to show.

View 9 Replies

How To Print Webpage Without Opening A Popup Window

Apr 16, 2010

I want to print a web page using javascript. But I do not want to open the page as a popup windows. How can I print directally a web page like 'mypage.aspx' using javascript window.print method without opening it as a popup window?

Also the condition is 'I dont want to use any Activex for this'

View 5 Replies

AJAX :: Modal Popup Click Control Within Panel Is Closing Popup

Jul 27, 2010

I'm using modal popup extender and panel with calendar in it. Click the "Next / Previous Month" closes the modal popup. How do I tell the modal popup to ignore click events in a calendar control inside the panel targeted for popup? I'm confused because when using extender before, you had to click OkButton or Cancel to close popup. I have update panel for reason. I just minimized the code for easy review.

[Code]....

View 5 Replies

Web Forms :: Refresh Parent Window On Close Of Chlie Window

May 14, 2010

I have created an intranet application in ASP. From my main web page I am opening a web browser window and adding a record to database from that new window. Now on close of that window I want to refresh my main web page to reflect the database changes. My backend is "ms access" Also on the other hand I also want to disable the closing button of web browser.

View 2 Replies

Web Forms :: Return True Or False From Popup Window To Parent Window

Sep 25, 2010

I am trying to return true or false from popup window to the parent window. Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message. But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

View 5 Replies

Web Forms :: Call Parent Window Method From Model Popup Window?

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

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Web Forms :: Passing Variables Between Parent Window And Popup Window

Apr 29, 2010

I have a page wich opens a popup window. I want to pass some variables, like some textbox.text and 2 dataTables from parent window to the popup window. And then I'll have to return some vars from popup window to parent window. So what is the best way to do this,

1) using Sessions("")

or

2)passing the variables as parameteres:

LinkButton1.Attributes.Add("onclick", "window.open('popup.aspx?field1=" & value1 & "&field2=" & value2 & ......

I don't know if it's appropiated passing 8 or 10 variables as the option2 because the user will see a very long url with all the variables, but maybe is more efficient than using Sessions.... Anyway, could somebody clear me up?

View 12 Replies

Web Forms :: Accessing Textbox In Parent Window From Popup Window

Feb 15, 2011

I am using a master page in my project. I opened a popup window from content page. What I want to do is, when I close the popup window, the data in the textbox available in popup should be assigned to a text box in parent form. But I dont want to refresh the parent window when I close the popup window. Can any one tell me how can I access textbox in a parent window from a popup window without refreshing the screens.

View 3 Replies

Web Forms :: Update Usercontrol On Parent Page When Closing A Modal Window?

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

Refresh Small Part Of The Webpage Without Refresh The Entire Page In C# ?

Mar 11, 2011

how we can refresh small part of the web page without refresh the entire page in C# ?

View 2 Replies

Web Forms :: Open Popup Window With In Another Window

Aug 26, 2010

I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:

When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.

View 2 Replies

Closing A Pop Up Window By Using Code

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

Closing Pop Up Window On Button Click

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

Web Forms :: AJAX Modal Popup Is Closing When Button Is Fired Inside Update Panel

Jun 26, 2012

 I am sending you the code. It Has two PArts First is CLIENT SECTION and Anpother is STATION Section

1) CLIENT SECTION : It has a dropdownlist binded to SQLDataSource and with this it has an imagebutton bAddClient

bAddClient will open the ModalPopup which will ask user to Add new client. And After Adding the New client when User

will close the ModalPopup MY DropDownList is not getting Populated with the New Client. I have Used UpdatePanels Also

2) STATION SECTION : It has a DropDownList, an Image BUtton , And Grid View. In Grid View it shows station details 

On particular client selcted above.

I have given the delete station command on deleting the station that particular entry doesnot goes away. 

It Should not be visible after it get deleted

Now when i click on imagebutton a modalpopup will open. 

Now In modalpopup i have given dropdownlist , image button(to add new station), Some station Info and save button

Now when i click on dropdownlist it used to close the modalpopup then i seet the autopostback = false. Then it works fine. Is it correct way?

Now when i click on imagebutton it asks user to add new station with a textbox , save station button. When users click on savestation button then it adds station to the DB and it should update the dropDownList of ModalPoup without closing it.

But when I am clicking on imagebutton it is closing the modalpoup.

And When user clicks on ModalPoup SSave Button in end it should update GridView of STATAION SECTION too.

<%--   ************** CLIENT SECTION START HERE*******************--%>
<p class="heading">CLIENTS</p>
<br />
<asp:ScriptManager ID="smClientMgmt" runat="server" />
<asp:UpdatePanel ID="upCMClientInfo" ChildrenAsTriggers = "true" UpdateMode="Conditional" runat ="server" >
<ContentTemplate>

[Code] ....

View 1 Replies

Reload Parent Window After Closing The Iframe?

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

Javascript - Passing Data Between A Parent Window And A Child Popup Window With JQuery

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

Pass Control Value From Parent Window To Popup Window's Code Behind

Apr 16, 2010

I want to receive value from parent's control to popup window's code behind. for example

<asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/>Rate
<asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/>dollar

and recive selected radiobutton's value from popup window's code behind. My Solution is make querystring and pass the value.

for example >
window.open(url + ?selectedRadioVal=" + $("#~~checkedradiovalue~~) .. blah balh)
and receive the value by Reqeust.Querystring.Get().

But I can't send very long string. (maybe the url length is limited, right? Is there any good way to solve?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved