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,
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?
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.
Work on asp.net vs08 C#.i have a page .From this page i need to call a page on popup.On the popup page selected value will be set on the parent page text control.1) One parent page2)One child page.3)call parent to child as popup.4)On popup window contain a grid.5)on popup grid have command select,click on select close popup and selected value will set on parent page text control.
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?
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?
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.
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.
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?
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()?
when i open home page and click a link in whatsnew section, IE 8 opening the links in a new window.but firefox 3.5.7 opens in parant window, just like i want.how can i make IE 8 also open the links in parent window?
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
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.
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
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.
I can easily open the child.aspx as popup window after click a button from parent.aspx page. Now I want to return some value from child page to parent page. As I want when I type something in a text box of child page and click the close button, this child page close and value display in a textbox of parent page.
I know if I open the child.aspx page with window.open(- - - - - method then I can take advantage of window.opener.updateValues(---- method but I want to open the child.aspx page as model I mean I want to use window.showModalDialog(- - - - - method.
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.
Refresh the Parent Window. I open the child window,I want that on close button click on child window,parent window refreshes
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.
Within the EditItemTemplate and InsertItemTemplate I have a cell that has a textbox and a button.
When the button is clicked a popup window is shown, where the user can upload a picture. The name of the uploaded picture is retrieved.
Now I want to send that picture name back to the textbox within the listviews EditItemTemplate or/and InsertItemTemplate (that is ofcourse one at a time depending on what the user is doing, inserting or editing a row).
The code I have written so far looks like this. The below code has been abbreviated
And at last the child page / popup page.
Well there is not anything to see here, cause I'm using the Telerik RAD upload control, which is doing everything for me.
However the line below may be of interest. Here I'm taking the name of the uploaded file (picture) and printing it to a label.
In VB.net .... I have GridView from which i select list of rows using check box and upon clicking the button i need to display those selected rows in a gridView of another page. and that page is a popup window?
I am trying to pass parameters to a popup window via query string(a hidden field id & a textbox id). However, since I am using master pages the id's are very long (ct100_someid). Is there a way to elegantly pass my ids ? Can I shorten my id's or not show them to the user at all?