简体   繁体   中英

How to stop page jumping checkbox check which is inside the datalist itemtemplate?

I have a fieldset inside that one panel on inside the panel I have a datalist, inside the itemtemplate I placed checkbox

<asp:CheckBox ID="Chkbox" runat="server" TextAlign="Right" AutoPostBack="true" />

foreach (DataListItem dl in dlst.Items)
{
  if ((((CheckBox)dl.FindControl("Chkbox")).Checked))
  {
    Button1.Enabled = true;
  }
 }

when i am selecting any checkbox, page is jumping(only fieldset part is jumping) but when browserscroll position in botton of the page and ticking on checkbox then browser page is jumping, page is already inside the updatepanel, i am using MaintainScrollPositionOnPostBack set to True and this approach , but nothing is working, how to stop page jumping?

i have removed the autopost back from the checkbox and added a jquery on client side

disable/enable outside asp button control on datalist checkbox checked javascript?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM