Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2007, 03:22 AM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Popup window in Asp.net

Hi guys, try to solve this problem,

I have a form(displays a table contents in a datagrid) which has a link which opens another web page as a popup window (using JavaScript), in the new window I have a submit button which inserts into a table. Everything working fine. Now I want to close the popup window with the same button(submit, after insertion) and at the same time it has to get back to the previous page and should refresh the datagrid(first page)?

I can close the page using javascript, but I don't want to keep any other buttons in my popup page except the submit button?
How to program it? Help me out !!!

Naresh
 
Old April 12th, 2007, 05:26 AM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi.. guys I got the solution...



Naresh
 
Old April 12th, 2007, 08:30 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Naresh

Can you share with us how did you resolve the issue.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old April 12th, 2007, 10:23 PM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi mike,
definetly dudue,

well, I have solve this problem using javascript code. In the parent form under the link, have created a onClick event which executes a JavaScript code. That is .....

window.open("PopupWindowURL","NameOftheFormUWant2G ive,"featuresofFormAsHighWidthEtc");

it opens a popup window.

And to close the popup window, for this even JavaScript, I have taken a HTML controll SUBMIT button, under onClick have written a JavaScript Code

window.close();

and under onserverClick have written code behind program. Which executes sql query.

This is the way I have solved my problem Mr.Mike...



Naresh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup Window using ASP.NET 2.0 Harjinder ASP.NET 2.0 Professional 3 January 31st, 2008 07:48 AM
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
open popup window in asp.net rajn ASP.NET 1.0 and 1.1 Basics 6 August 2nd, 2006 06:23 AM
Javascript popup window with ASP variable johnnycorpse Classic ASP Databases 2 February 24th, 2005 01:17 PM
Thank you popup window after asp submit? kbuska Classic ASP Basics 1 September 20th, 2004 06:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.