Pop up window in asp.net

TedManowar

Member
Joined
Dec 15, 2006
Messages
10
Programming Experience
3-5
Hello,

I need a simple window to pop-up when an asp button is clicked

can someone help?

TedManowar
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,553
Location
Norway
Programming Experience
10+
It's done with Javascript window.open command. Use your favorite search engine to find "asp.net popup" and you will find much help about this for different type of popups, some have created different confirmation popup controls for example that are more friendly to work with than you having to reinvent this particular wheel.

Asp.Net server code itself does not operate in client environment, it only pushes processed data to be viewed in response to client server requests, and can read data of a client modified page when request is made. In relation this, a popup is initiated client side from the static client side page and does not make a server roundtrip. It is not possible for asp engine to make this kind of thing happen.
 

TedManowar

Member
Joined
Dec 15, 2006
Messages
10
Programming Experience
3-5
Thanks for your help,

I found a nice example minutes after posting this thread. I usually work with windows applications and frameworks, so incorporating javascript into asp controls is something that is still a bit confusing for me. However I found a sub and made it into a class so I will never have to reinvent this particular wheel again. ;)

TedManowar
 
Top Bottom