I am using a repeater control in a web part. The repeater control contains a checkbox. when I select more than one checks in the repeater checkboxes the page is getting refreshed. This happens only in chrome and firefox browsers.

  • Do you have AutoPostBack=True for the checkbox? – Arsalan Adam Khatri Nov 18 '14 at 13:31
  • yes. @ArsalanAdamKhatri – riz123 Nov 18 '14 at 13:33
  • Do you have SelectedIndexChanged or any other event implemented at the backend? If not, remove AutoPostBack=True and you should be fine – Arsalan Adam Khatri Nov 18 '14 at 13:35
  • I am using OnCheckedChanged event inside the repeater. <asp:CheckBox ID="DependentCheckBox" runat="server" OnCheckedChanged="DependentCheckBox_CheckedChanged" AutoPostBack="true" /> – riz123 Nov 18 '14 at 13:37

For Non-IE browser turn of the Cache mechanism which can cause this type of issues with AjaxCalls

protected void Page_Load(object sender, EventArgs e)
   if (Request.Browser.MSDomVersion.Major == 0) // Non IE Browser?
       Response.Cache.SetNoStore(); // No client side cashing for non IE browsers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.