protected void Page_Load(object sender, EventArgs e)
{
if (Session[IDNumber.ToString() + "reload"] != null) { Session[IDNumber.ToString() + "reload"] = null; }
else
{
Session[IDNumber.ToString() + "reload"] = "true";
Page.ClientScript.RegisterStartupScript(typeof(Page), Guid.NewGuid().ToString(),
"<script type='text/javascript'>window.location.reload(true);</script>");
}
}
in the aboved codes the IDNumber is a unique id of the user i passes to the
page as query string.all those codes i did not show here but wrote what needed
to reload a page on first page load.