Master Page And JavaScript / Command Can Not Send Any Value From New Window To Parent?

Dec 1, 2010

I prepared an aspx file that can open a new window with (window.open) command. In the child window, some values send to parent page with (.innerHTML) command and it can close itself . However, after I set a master page to parent page , command can not send any value from new window to parent and it can not close itself.

How master page can affect my javascript commands?

EDIT: By drachenstern (I do what I can with what I have ... this is what he pasted)

From child code behind:

<br> Page.RegisterStartupScript("CLOSE",
"<...JS...><script type="text/javascript">" +<br>[code].....

View 2 Replies


Similar Messages:

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

Javascript - Reporting Child Window's Events To Parent Window To Reset Timer Value Of User Timeout Code

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

Web Forms :: Send Values To Parent Window On Gridview Click Event?

Sep 21, 2010

I have a form, 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 can open the child window and get back the values using window.opener method in JS.

But can anyone help on how to bind the JS code to the onClick of every row in the gridview. How can i activate the OnClick event of every row/alternating row item of the gridview and bind the JS code and pass each column value to that JS method? The no of columns in the gridview can vary depending upon the data? So in that case, i have to have a collection to be passed to JS code that can contain n number of column values.

View 2 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

Call Child Window Function From Parent Javascript

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

Open New With Javascript And Use Parent Window's Existing Session?

Jan 8, 2010

I am opening a window with window.open and I am losing the server session. Is there a way to open a window with Javascript and use the same session? I need this working in IE 7 and higher. I am working with ASP.NET on the server side. The sever does not have a sessionless cookie state.

<sessionState mode="InProc" timeout="15" />

View 2 Replies

How To Use Sharepoint Master Page In A Separate Application As Parent Master Page

Sep 29, 2010

Is it possible to inherit a sharepoint master page(as a parent) in another application's master page which will be treated as child (i.e. after integrating that standalone application with the sharepoint application)? I am totally new to Sharepoint..

View 2 Replies

Can Content Page Use ContentPlaceHolderID Of Master Parent Of Its Master Page

Sep 29, 2010

I have a 3 level nested master pages and a content page. parent1 is the top parent, parent2 is parent of parent3 and parent3 is the parent of the content page.

I get an error 'Cannot find ContentPlaceHolder xxx...' where xxx is a ContentPlaceholder. It resides in parent2 and content page is trying to fill it.

Can content pages only use their direct parent ContentPlaceHolders or can they also use any of the higher master pages?

View 2 Replies

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

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

TO Redirect From Parent Window But It Should Be Opened In Parent Window?

Jan 19, 2010

i have opend a popup window using C#.And in pop up window i have a button,clicking that button it should redirect to another page.Here i need to close the popup window and redirect to a page..Right now redirected page is opened in popup window..but it should be opened in parent window .

View 3 Replies

Return Value From Popup Window To Parent Page?

Jan 26, 2010

I am using ASP.NET 2.0

I have two aspx pages parent.aspx and child.aspx

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.

View 4 Replies

C# - How To Refresh A Parent Page When Child Window Is Closed

Feb 21, 2011

how to refresh a parent page when child window is closed.

View 2 Replies

Web Forms :: Send Print Command Form .net Page?

Jun 7, 2010

way to accomplish this. I have a webpage that has a list of assets and each one has a checkbox next to it. When the submit button is clicked I want to grab that serial number of the selected asset and send it to a network printer to print out a barcode label. I am able to achieve this from when I run it on my system but when I deploy it to the server it does not print. I can see the print job but it never gets printed, it just disappears. I am currently using RawPrinterHelper found here [URL] I've tried creating an activeX control and that doesn't work either.

View 3 Replies

VS 02/03 Using Window.opener.location.reload(); In IE7 To Refresh Parent Page?

May 16, 2010

I have a web page that opens another web page in a pop up window. I would like to refresh the parent page when the submit button is clicked on the pop up page. I tried using window.opener.location.reload(); in IE7 but nothing seems to be happening.

View 15 Replies

C# - How To Open A Popup Window And Return Values To The Parent Page

Mar 6, 2010

how to open a popup window and return values to the parent page

i.e passing value fom popup window to parent form.

(The child window contain textbox with a button. Once the value entered in the textbox the value entered should be updated in parent window from child window)

in asp.net web application using C# ..

View 1 Replies

Web Forms :: Force A Page To Open In Parent Frame (whole Window)?

Jun 25, 2010

Is there any way to force a page (that opens in an iframe) to load in the parent frame (whole page/window)?

I am in a scenario where I really had to use iframes to maintain my website branding because my eCommerce provider does not support customizations. When Payment is made, I would like my TransactionComplete.aspx to open in the parent frame and not within the same child frame.

View 3 Replies

User Controls :: How To Pass Value From Popup Window To Parent Page

Nov 24, 2013

i want to pass the value of variable form popup page to main page. i have try to use the session but i can't because the main page is start before the popup page start.

View 1 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

AJAX :: Modalpopupextender Can't Disable The Parent Page When Popup Window Is Open

Dec 23, 2010

[Code]....

modalpopupextender can't disable the parent page when popup window is open

View 5 Replies

Forms Data Controls :: Datalist Links Opening In New Window Rather Than Parent Window?

Jan 28, 2010

i have following datalist in WhatsNews.aspx page.

[Code]....

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?

View 3 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

On Close Button Click On Child Window,parent Window Refreshes?

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

Web Forms :: How To Pass A Session Variable From Child Window To Parent Window

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







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