Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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 September 1st, 2005, 01:54 PM
Registered User
Join Date: Sep 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating Pop-up Window from ASP.Net Table Cell

Hi, all.

I have an ASP.NET table with url links to other ASP.NET forms. I would like these forms (in the url links) to be pop-up windows that "sit on top of" the parent form (the form with the ASP.NET table).

I have the following code in my code behind module for those rows/columns in my table that have links to other forms:

        Dim expCol2 As New TableCell
        Dim explc As New LiteralControl
        explc.Text = "Successful teaching experience in the subject within the last 5 years."
        expCol2 = tblHOUSSE.Rows.Item(1).Cells(1)
        Dim exph As New HyperLink
        exph.Text = "Teacher Subject Experience Detail"
        exph.NavigateUrl = "TchrSubjExpDetail.aspx"

I have created pop-up ASP.NET forms in the past, but don't know how to do it from a table cell. What I did before was put the following code in an event handler:

      Dim popupScript As String = "<script language='javascript'>" & _
                "myCalendar = window.open('AddrCalendar.aspx', 'MyAddress', " & _
                   "'width=315, height=370, menubar=no, resizable=no, fullscreen=0, modal=yes, TopMost=True, MyCalendar.focus();')" & _
           ' Register the script
           Page.RegisterStartupScript("CalPopUpJS", popupScript)

In case anyone is wondering, I used an ASP.NET table on my ASP.NET page because nearly all the info on the page is static text.

Thank you,


Similar Threads
Thread Thread Starter Forum Replies Last Post
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
pop up window in asp MarkMingLuy ASP.NET 1.0 and 1.1 Basics 0 November 26th, 2006 03:15 PM
open multiple pop-up with linkbutton in asp.net aspenthu ASP.NET 1.0 and 1.1 Basics 0 March 10th, 2006 01:41 AM
creating pop up window in php file adamgg0 Beginning PHP 3 August 8th, 2005 05:22 AM
Creating Pop up Window tact_259 .NET Web Services 0 April 5th, 2004 06:26 AM

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