I want to open a popup window on Button click.But the Pop up window should appear like a box in the center of screen and not as new page. i.e it shold be just a box without any menu bar.And should be able to define size.Can any one help me out please.
Thank You
Piyusha

Prasenjit DeyRank #6,279 · 271 reputationPosted Sep 17, 2013, 11:17 PM EDT
asp:Button ID="Button2" runat="server" Text="Save to Folder" BackColor="#990000"Font-Bold="True" ForeColor="White" OnClientClick="basicPopup();return false;" /> Now write the javascript function script type="text/javascript"> function basicPopup() { popupWindow = window.open("PopupPage.aspx", 'popUpWindow', 'height=300,width=600,left=100,top=30,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No'); } script> "PopupPage.aspx" is the page name, which you want to open in popup And place this function in your Header section (within ..(Javascript Function).. ) of your pageSanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 18, 2013, 12:39 AM EDT
for this you can use ajax modalpopup extender.
refer to these links for sample:
http://aspsnippets.com/Articles/Building-Modal-Popup-using-ASPNet-AJAX-ModalPopupExtender-Control.aspx
http://www.webcodeexpert.com/2013/08/ajax-modalpopupextender-example-to-open.html#.UjlnYiJlfcw
http://csharpdotnetfreak.blogspot.com/2011/03/ajax-modalpopupextender-example-aspnet.html
mohan raj55 reputationPosted Sep 18, 2013, 2:12 AM EDT
Response.Write("");
here u can set the width and height.