Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking 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 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 July 24th, 2007, 06:29 PM
Authorized User
 
Join Date: Apr 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pop up window from inside Web user control

In my application I have used a Web User control . Inside the form I have a dropdown field.A pop up window will display , based on the option selected from the dropdown.

for my dropdown selected index changed I have

string strJavascript = "window.open(\"intDisplay.aspx\", \"gointl\", \"height=500,width=600,scrollbars=yes,resizable\") ;";
ScriptManager.RegisterStartupScript(this, this.GetType (), "OpenWindow", strJavascript, true);


But the popup window is not showing up. I have used Update Panel in my form.

PLease let me know some suggestions. Thanks,



 
Old July 25th, 2007, 09:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. where do you have the update panel...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old July 31st, 2007, 04:27 PM
Authorized User
 
Join Date: Apr 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The whole form is inside the update panel.

 
Old August 1st, 2007, 06:43 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try to add this paramater to your jave script "'_new'"


:)


Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
 
Old September 29th, 2008, 06:39 AM
Registered User
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same prob. where should I add this Java script parameter "'_new'"

function ShowRegistration()
    {
        window.showModalDialog("SellerRegisterProductPopUp .aspx?Key=" + '<%=strProductId%>',"","dialogWidth:350px; dialogHeight:200px; center:yes; resizable:no");
        return false;
    }

I'm calling this fuction on some condition from code behind file. If condition stisfies RegisterForm is shown otherwise not with help of code as -

Page.ClientScript.RegisterStartupScript(this.GetTy pe(), "showAl", "ShowRegistration();", true);
 
Old October 22nd, 2008, 12:37 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try something like this

Response.Write("<script>window.open('temp.aspx','_ new');</script>");

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with validation inside user control aldwinenriquez ASP.NET 1.0 and 1.1 Professional 3 July 1st, 2007 09:53 AM
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
Render Window Media Player in a web custom control pratik28 General .NET 0 June 8th, 2006 07:49 AM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
Pop-Up window from server side control jbenson001 ASP.NET 1.x and 2.0 Application Design 5 November 11th, 2003 05:00 PM





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