C# firefox back button problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aji24
    New Member
    • Mar 2007
    • 3

    #1

    C# firefox back button problem

    i'm having some problem with my back button in C#.

    Response.Write( "<script language='JavaS cript'>history. back();</script>");

    it works fine with IE but not with Mozilla Firefox, it only re-load the same page, doesnt go back to previous page.
    anyone knows the solution?

    thx.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Try:
    Code:
    Response.Write("<script language='JavaScript'>history.go(-1);</script>");

    Comment

    • aji24
      New Member
      • Mar 2007
      • 3

      #3
      thx for the reply. tried history.go(-1); but still not working. it only re-load the page.

      i found something about setting the SetAllowRespons eInBrowserHisto ry = true and some websites also mentioned SetCacheability , but not sure if that's the problem.
      anyone knows??

      thx..

      Comment

      Working...