Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
I want to open a page as popup window.
it is working but it also show the browser that is mozilla firefox............with minimize,maximize,close buttons.
i don't want to show those.
i have to show only my popup page only
this is the code i wrote it
please check it and give solutions to my problem

 <script type="text/javascript">
function basicPopup() 
    popupWindow ="empchoosefoldertosavepopup.aspx", 'popUpWindow', 'height=300,width=600,left=100,top=30,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No');

<asp:Button ID="Button2" runat="server" Text="Save to Folder" BackColor="#990000"Font-Bold="True" ForeColor="White"  OnClientClick="basicPopup();return false;" 
Posted 3-Nov-11 0:06am
Edited 3-Nov-11 0:07am
Member 8680138 at 15-May-12 6:24am
I used above source its not working in first click but from second click popup is coming wt i have to do in first click
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Why are you aasigning to a variable and where is that variable declared. If you want to get any return value or show the window as a modal dialogue please use the following code
var strReturn = window.showModalDialog('URL Name', null,
Hope this helps.
Thanks & Regards
Member 7932936 at 3-Nov-11 5:31am
i used this but it is not working.even it shows mozilla firefox browser and close button
hxu1989 at 20-Jul-12 11:33am
how can I open a popup window and pass some value to the Popup window? Please help.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

it is better to use window.Modalshow dialogue for your requirement.
var popupStyle = "dialogheight=300px;dialogwidth=450px;dialogleft:200px;dialogtop:200px;status:no;help:no;";
 var var1 = window.showModalDialog(url,this, '', popupStyle);
Member 10567472 at 3 days ago
Rate this: bad
Please Sign up or sign in to vote.

Solution 7

Use pop up Modal instead of pop up window.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 308
1 Kornfeld Eliyahu Peter 220
2 Sergey Alexandrovich Kryukov 162
3 Maciej Los 160
4 OriginalGriff 153
0 OriginalGriff 383
1 Peter Leow 318
2 Kornfeld Eliyahu Peter 260
3 Maciej Los 230
4 Sergey Alexandrovich Kryukov 212

Advertise | Privacy | Mobile
Web04 | 2.8.150301.1 | Last Updated 2 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100