Open A New Window Whilst Keeping The Old One Alive?

Feb 14, 2011

I gather customer information on a asp.net page (.net 2.0) then I want to open a new page / window which will be passed all the payment details and then connect to our payment service provide to process the payment. Once done the payment window is then close and the original calling window is updated with the result of the payment.

I can do all of the above, except I don't know how to go about opening a 2nd IE window leaving the calling windows on the screen whilst passing parameters and retrieving the result.

My best guess would be:-

Stuff all the parameters into session state var's

Open a new windows / page pickup the session state var's

Process the details

Write the results back to session state var's

Close the new window

Pickup the results from the session stae var's

View 3 Replies


Similar Messages:

AJAX :: How To Refresh Parent Page Details By Keeping Child Window Open

Apr 28, 2010

I have a screen where on filter icon click on a column i need to show a popup screen or a div looks like popup and in which will have list of check boxes with distinct values of all rows of column one (i.e. the data of popup is like below). All these check boxes are dynamically generated controls.

checkboxcontrol Data1
checkboxcontrol Data2
checkboxcontrol Data3

When user click on any of the above check boxes the parent grid should get refreshed with the filtered data and popup or div tag looks like popup should stay and should not be closed. How do i do this?

The main screen has details like below

Data1 Column2Data Column3Data
Data2 123Data Column3Data
Data2 Column2Data Column3Data
Data3 Column2Data Column3Data

How to refresh my parent page details by keeping my child div tag open or child window open? What is better approach whether to create server side div tag or a modal popup window?

[Code]....

View 4 Replies

C# - Keeping Alive PostedFile.InputStream ?

Jan 21, 2010

I was wondering wich's the best way to "keep alive" the InputStream of the FileUpload Control.I would give you one example. Let's assume you have the FileUpload control in one WebForm, and you want process it in the next WebForm (after Response.Redirect).It would be great (unless for the memory) to have something similar to:

Session["PostedFile"] = this.FileUpload.PostedFile.InputStream.
Unfortunately, this results in:
System.ObjectDisposedException

View 2 Replies

AJAX :: Keeping Session Alive Via Webservice?

May 21, 2010

if updating a session value from within a webmethod call made from jquery would be able to keep my session alive?

JS:

$.ajax({
type: "POST",
url: "MyWebService.asmx/Keepalive",
async: true, [code]....

View 1 Replies

Keeping .NET Session / Forms Authentication Alive In Silverlight Application?

Sep 13, 2010

I have a web app containing a silverlight application. How do I keep the ASP.NET session / Forms Authentication alive when the user is using the silverlight application?

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

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

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Using The Javascript To Open A Child Window Using Window.showModaldialog?

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

Web Forms :: How To Open The Redirected Page From Iframe To Open In The Parent Window

Feb 17, 2011

I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:

Response.Redirect("results.aspx");

This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:

Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]

View 1 Replies

Web Forms :: Click Imagebutton Open Window.open In Class 2.0

Sep 11, 2010

Click imagebutton open window.open in class asp.net 2.0

View 2 Replies

Open A File Share Link From Window.open Javascript?

Aug 2, 2010

I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?

View 1 Replies

Web Forms :: How To Pass A Window Name To Window.open

Feb 12, 2010

How do I pass a window name to window.open(url, windowname) programmatically? I am using a user control inside aspx forms. I want the windowname to be different, so from each link a separate window opens.

I have an asp:hyperlink in a .ascx form. The code looks like this:

<asp:hyperlink runat="server" id="xx", navigateurl="is set programmatically" onclick="javascrip:return popup(this, 'my window'; " text="xxx"/>
'my window' needs to be a variable.

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

AJAX :: Window.Open In AJAX Accordion Panel Opens Link In Same Window

Aug 31, 2010

I'm using the following span to open a page in a new window. What is INCREDIBLY odd is that it is exactly the same code from three different pages, but the first refuses to open in a new window. The only difference is that the first example resides within an Ajax Accordian Panel so I suspect that it might be an Ajax related issue.

[Code]....

View 2 Replies

Web Forms :: Use "Window.Open" Method To Create A New Browser Window From C#?

Aug 25, 2010

I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.

View 11 Replies

Web Forms :: Open PDF In New Window?

Aug 9, 2010

Quick one. I've created a PDF using iTextSharp and want to open it straight away inside a new window. I've tried the following to no avail:

[Code]....

View 6 Replies

How To Open .txt File In A New Window

Nov 17, 2010

have a HyperLink control and a grid control on my .aspx page.

When user's start editing the content of the grid control, I create an ascii file and assign the location of the file the Hyperlink control using the following code.

Code:

hyperLinkFileOpen.NavigateUrl = fileName;

When the user's click on the hyperlink control, I want the file to be be opened in a new window. How can I do that? I browsed and found something below. But this doesn't work for my case because the fileName is created on the fly and I won't know the name and path of the file at design time.

Code:

[code]....

View 32 Replies

How To Open Popup Window In C#

Aug 5, 2010

I can't use RegisterStartupScript('window.open...), because Chrome blocks the popup without even informing the user.

I can't use "onclientclick=window.open(..." in the markup, because I have to invoke code in the button click event handler before opening the popup window.

I can't expect every user of the website to add the site as an exception in Google Chrome's popup blocker, since they'll assume it's an error on the website and not with the popup blocker.

So what other options do I have?

View 1 Replies

C# - How To Open A Link In A New Window

Sep 18, 2010

I have a button which redirects the user to another page. Instead, I would like this button to open a new window that points to this location.

aspx:

<asp:ImageButton ID="img_url"
CommandName='<%#Eval("url") %>'
OnClick="img_url_Click"
runat="server"
ImageUrl="~/images/products_details.png"
/>

cs:

protected void img_url_Click(object sender, ImageClickEventArgs e)
{
ImageButton img = sender as ImageButton;
Response.Redirect(img.CommandName.ToString());
}

View 3 Replies

Target Cannot Open In A New Window?

Sep 15, 2010

I have a Menu control on MasterPage. Even though I set Target="_blank" why doesn't it open in new window? What do I do to open the page in new window?

[Code]...

View 8 Replies

MVC :: Open New Window From Controller

Mar 30, 2010

I would like to redirect a user into a new window.

public ActionResult Index(FormCollection form)

View 10 Replies

Web Forms :: How To Open Rad Window

Nov 24, 2010

<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>

[code]...

View 2 Replies

Web Forms :: How To Open Pop Up Window

Aug 30, 2010

i'm interested to know how can i open a small pop up window when clicking a button, not a new tab, but a new window.


View 2 Replies







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