How do I build a popup dialog in asp.net

不打扰是莪最后的温柔 提交于 2019-12-02 06:18:04

If you're not concerned about using a library, try Microsoft ASP.NET AJAX Control Toolkit, they have several controls that can create something you want (the ModalPopup control).

The AJAX Control Toolkit has a ConfirmButton extender which will do exactly what you are looking for.

I used to do the following: 1. my new pop up is just a new aspx page like any other page 2. add a button (or just a link) that fires a client side java script function 3. in the function I use window.open and put params to open my popup page with no toolbars or scrollbars and proper size to its content

check this for more info on #3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!