Hi all,

I have a page in asp.net. A button click in the page will open a pop-up. I have used btn.attributes. add("onclick", ""); to open the pop-up.

Now if session is expired, it is opening the pop-up window and in the pop-up it is showing the login screen.

Is there any way in which i can avoid pop-up being opened if the session is expired?

Thanks in advance.