Page is not refresh first Time

Posted by Umesh.Sts under C# on 3/9/2012 | Points: 10 | Views : 962 | Status : [Member] | Replies : 2
Hello
I am umesh Kumar Verma, I am facing one problem i have remove cookies in the my code. But my page are not refresh first time. again i have to click refresh then this page is refresh.
Pls help me so that first time page is refreshed.

Umesh




Responses

Posted by: Shubham on: 3/10/2012 [Member] Starter | Points: 25

Up
0
Down
dear try this code::::

if (!IsPostBack) //first time page load
{ Random R = new Random(DateTime.Now.Millisecond + DateTime.Now.Second * 1000 + DateTime.Now.Minute * 60000 + DateTime.Now.Minute * 3600000);

PageID.Value = R.Next().ToString();
Session[PageID.Value + "ProductID"] = Session["ProductID"];
}
thankyu



Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

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

Posted by: Sksamantaray on: 3/12/2012 [Member] Silver | Points: 25

Up
0
Down
Can you explain your exact problem?

Thanks,
Sanjay

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

Login to post response