Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 January 19th, 2008, 02:24 AM
Authorized User
 
Join Date: Jan 2008
Location: Chandigarh, Punjab, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Harjinder
Default Popup Window using ASP.NET 2.0

HI

I am developing a website. I have a query that i've a master page and related content page. I just want to implement the coding to open popup window from content page. But my code is not working

harjinder
__________________
Harjinder
 
Old January 19th, 2008, 12:11 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

And you coding is?

The AJAX toolkit has a modal popup control I believe.

-Peter
 
Old January 19th, 2008, 02:37 PM
Authorized User
 
Join Date: Sep 2007
Location: , , Finland.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't get it. Just open a new window like this:

<asp:Button Runat="server" Text="Click me!" OnClientClick="window.open('Popup.aspx');return false;" />

Or do you need to do some fancy stuff like pass parameters to popup and some return value back from popup?

 
Old January 31st, 2008, 07:48 AM
Authorized User
 
Join Date: Jan 2008
Location: Chandigarh, Punjab, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Harjinder
Default

Hi
I Tell you

In MainPage.aspx i am using
<script language="javascript" type="text/javascript">
function abc()
{
  var e= document.getElementById('TextBox1')
  e.value="harjinder"; // it works fine without window.open
                        // and if i wrote something on TextBox
                        //Child.aspx shows undefined exception
                        //I need e.value in the Child.aspx page
  window.open("Child.aspx?ab= " + e.Value ,"abc");
  }
</script>

and in Child.aspx Page
protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["ab"] != null)
            Response.Write(Request.QueryString["ab"].ToString());
        else
            Response.Write("Sorry");
    }


harjinder




Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
Popup window in Asp.net kotanaresh_2003 ASP.NET 1.0 and 1.1 Basics 3 April 12th, 2007 10:23 PM
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.