[英]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.