Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I determine whether any pop up window is open on client machine or not? I need to open only one pop up and after that all pop up opening is denied.

Can I declare application level variable in java script while developing application in c#?

Can anyone help me?
Posted
Updated 24-Nov-10 5:26am
v4
Comments
Sebastien T. 24-Nov-10 10:00am    
The pop up is open when the user click on a button ?
JF2015 24-Nov-10 10:04am    
Edited and removed tags.

1 solution

It isn't a function for C#, which would be server side, it's a function of JavaScript on the client side.

Window.Open returns a reference to the opened window object. Store this as a global variable and check before opening a new one.
 
Share this answer
 

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