• 27-09-2013, 11:27:07
    #1
    Merhabalar,

    Arkadaşlar başlıkta da göründüğü gibi projemde bir işlem yaptırıyorum

    Sayfam.aspx sayfasında bazı matematiksel işlemler yaptırıp sonucunu
    Sonuc.aspx sayfasına redirect ediyorum buradan sonra tarayıcıdan geri tuşuna basamasın istiyorum böyle bir şey yapılabilir mi ?

    Aşağıda ki yöntem harici başka yöntem istiyorum.
    <script type="text/javascript" language="”JavaScript”">
           window.history.forward(1);
    </script>
    Şimdiden teşekkürler.
  • 27-09-2013, 12:15:57
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    <script type = "text/javascript" >
       function preventBack(){window.history.forward();}
        setTimeout("preventBack()", 0);
        window.onunload=function(){null};
    </script>
    veya

    Response.Cache.SetCacheability(HttpCacheability.NoCache);
     Response.Cache.SetExpires(DateTime.Now);
    veya

    protected override void OnPreInit(EventArgs e)
    {
        base.OnPreInit(e);
     
        Response.Buffer = true;
        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
        Response.Expires = -1500;
        Response.CacheControl = "no-cache";
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
    }