views:

34

answers:

1

I have a ASPX Page that contains several user controls, which are loaded dynamically after user interaction.

On one of ascx I have a hidden button that is being clicked on some user actions (via button.click()), which works fine on 1st page load. But after the form is being submitted once, the other ascx is loaded. There if user clicks the back button and resubmits the 1st form (again via button.click()), button_clicked event on server does not fire again. Any thought?

A: 

This is the solution - 2nd one is needed because of FireFox 3, which does preserve NO-CACHE directive.

  Response.Cache.SetCacheability(HttpCacheability.NoCache); 
  Response.Cache.SetNoStore(); 
the berserker