C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




asp.net


Posted Date: 16 Oct 2008      Total Responses: 3

Posted By: vidhya       Member Level: Gold     Points: 1


Page.ClientScript.RegisterStartupScript(this.GetType(), "openpopup", "<script language=javascript>window.open('Default2.aspx','test','height=350,width=280,top=250,left=300');</script>");

i have used this code in page load to view the window as popup one but its getting minimized

can any one help for this... it should not have minimize and maximize the page




Responses

Author: Athira Appukuttan    16 Oct 2008Member Level: DiamondRating:     Points: -20
<script language="JavaScript">

function PopUp()
{
var URL = "./index2.php";
var Name = "popup";
var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
var Breite = 800;
var Hoehe = 600;
window.open(URL, 'Name', Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}
//-->
</script>
</head>
<body onload=PopUp();>

Refer:
http://forums.asp.net/p/1091365/1637047.aspx


Author: vallimohan    16 Oct 2008Member Level: SilverRating:     Points: -20
<script language="JavaScript">

function PopUp()
{
var URL = "./index2.php";
var Name = "popup";
var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
var Breite = 800;
var Hoehe = 600;
window.open(URL, 'Name', Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}
//-->
</script>
</head>
<body onload=PopUp();>

hope this will help


Author: vidhya    16 Oct 2008Member Level: GoldRating:     Points: 1
its fine but if i click the back page then the popup window is getting minimized ...





Post Reply
You must Sign In to post a response.
Next : Holding Values from .aspx to code Behind Page in ASP.NET
Previous : dynamically adding controls in usercontrol using in asp.net using C#
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use