1

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.

4
  • Do you have AutoPostBack=True for the checkbox? Commented Nov 18, 2014 at 13:31
  • yes. @ArsalanAdamKhatri
    – riz123
    Commented Nov 18, 2014 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 Commented Nov 18, 2014 at 13:35
  • I am using OnCheckedChanged event inside the repeater. <asp:CheckBox ID="DependentCheckBox" runat="server" OnCheckedChanged="DependentCheckBox_CheckedChanged" AutoPostBack="true" />
    – riz123
    Commented Nov 18, 2014 at 13:37

1 Answer 1

0

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 and acknowledge you have read our privacy policy.

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