简体   繁体   English

如何停止数据列表项目模板中的页面跳转复选框?

[英]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 我在该面板上的一个面板中有一个字段集,在其中我有一个数据列表,在我放置的itemtemplate里面,复选框

<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? 当我选择任何复选框时,页面在跳动(仅字段集部分在跳动),但是当浏览器滚动页面在页面底部的位置并在复选框上打勾时,浏览器页面在跳动,页面已经在updatepanel内,我正在使用将MaintenanceScrollPositionOnPostBack设置为True和这种方法 ,但无济于事,如何停止页面跳转?

i have removed the autopost back from the checkbox and added a jquery on client side 我已经从复选框中删除了自动回发并在客户端添加了一个jQuery

disable/enable outside asp button control on datalist checkbox checked javascript? 禁用/启用数据列表外部ASP按钮控件复选框是否选中了javascript?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何绑定数据列表控件的itemtemplate字段内的dropdownlist - how to bind dropdownlist which is inside the itemtemplate field of datalist control 如何找到位于datalist itemtemplate内的控件 - How to find a control located inside datalist itemtemplate 如何在Page_Load事件上找到位于数据列表itemtemplate内的控件? - How to find a control located inside datalist itemtemplate, on a Page_Load event? 当用户点击datalist项目时,如何停止页面跳转并维护面板和浏览器滚动位置? - how to stop page jumping and maintain both panel & browser scroll position when user click on datalist item? 如何修改DataList中的复选框 - How to modify checkbox inside the DataList 选中/取消选中位于数据列表外部的按钮单击时的数据列表的所有复选框 - check/uncheck all checkbox of datalist on button click which is outside of datalist 如何在数据上有条件地修改DataList&gt; ItemTemplate内部的标记/模板? - how to modify markup/template inside of DataList>ItemTemplate conditionally on data? 如何访问ItemTemplate中的数据列表htmlanchor(href)控件? - how have access to datalist htmlanchor(href) control inside ItemTemplate? 如何访问另一个DataList中的DataList中的Label - How to access Label inside DataList which is inside another DataList 数据列表中的复选框列表 - Checkbox list inside datalist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM