load popup only once

Posted by Parthibansk under JavaScript on 5/2/2014 | Points: 10 | Views : 639 | Status : [Member] | Replies : 3
need a code to load popup window only once per user




Responses

Posted by: Allemahesh on: 5/2/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
explane your question clearly.

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Parthibansk on: 5/2/2014 [Member] Starter | Points: 25

Up
0
Down
popup window should fire only once or first time page is loaded... not in subsequent reload of pages....


Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 5/2/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
Just try the below logic:-

protected void Page_Load(object sender, EventArgs e)
{
if (Session["page"] == null)
{
Session["page"] = "Pagename";
//Call your popup
}
}


Happy Coding.

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response