Click here to Skip to main content
14,733,262 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi Guys

I Beginner on ASP.NET application please help me to creating POPUP Window in ASP.NET


What I have tried:

I have try to create a popup window with few database records.
Updated 3-May-20 21:13pm

It depends on what you call "popup window". Usually, this term means the concept of creation of a new browser window (which can also be a browser tab) using (and this would be the answer; use this JavaScript call).

In most cases, it would be a pretty bad idea. It's intrusive (you decide where to place new content, but, in the spirit of the Web design and tradition, the user should decide that), inconvenient (the user would need to remember where new content is and switch between window; don't forget that some may have dozen of other pages open), and finally, many will block popups (this is a usual feature of browsers, often enabled via browser plug-ins).

Much better alternative is so called "modal pop-up", which simulates modal behavior on the same page. In addition to jQuery Dialog (Dialog | jQuery UI[^]), there are many, with different effects, such as transitions, and, notably, dimming: modal popup[^].

Please see my article: Modal Popup From Scratch[^].
In this article, not only I explain how it works, why it works, but provide the motivation.


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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900