Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 12th, 2004, 05:01 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default window.open

Hi,

I am trying to open a pop up modal window(which is an aspx page)......from a click of a <a > tag...

and in the page_load of a popupwindow.aspx...i have a code which reads the session variable( it works fine)...
and at the click of a save button in the popupwindow.aspx(using window.close) or using "X" button of the title bar...the window is closed

and now when i click the link again it opens a window...but when i have a debug point in page_load...it does not go there..and some how it maintains the viewstate of that page and displays whatever in page_load...but it is not actually going into page_load...

i am very confused...

javascript function

function ShowDialog()
          {
          retval=window.showModalDialog('popupwindow.aspx',' Code','dialogHeight: 200px; dialogWidth: 200px;edge: Raised; center: Yes; help: No; resizable: No; status: No;');
          }

<A onclick="ShowDialog()" href="javascript:;"><IMG src="images\bullet3.jpg"></A>

in the page_load of the popupwindow.aspx...i have
this.Label1.Text=Session["test"].ToString();//which works..just keep a debugging point and notice it never goes there second time.

Thank You.


 
Old October 13th, 2004, 02:43 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

use window.open insted

Regards
Ganesh
 
Old October 13th, 2004, 10:01 AM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i know it workd with window.open .. but i need a modaldialod that way i can prevent user from coming back to parent.aspx without closing the child.aspx...

is there anyway i can acheive that using window.open...

thanks for your help.



 
Old October 13th, 2004, 11:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I don't think you can prevent the user using window.open... if you are talking modal forms, you might want to look at an ActiveX control.

Brian
 
Old October 13th, 2004, 12:09 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i fixed it ... all i needed was this in the page_load of child.aspx or popupwindow.aspx...

so when ihave this it does not store this page in the cache and always requests a new page..

    Response.Expires=0;
        // Response.Cache.SetNoStore();
        // Response.AppendHeader("Pragma", "no-cache");






Similar Threads
Thread Thread Starter Forum Replies Last Post
window.open() ckrajeshvarma ASP.NET 2.0 Professional 5 August 16th, 2006 09:13 AM
Open New Window b_camp Classic ASP Basics 2 May 12th, 2005 01:19 AM
Open in new window sridevi Excel VBA 1 November 4th, 2004 06:49 AM





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