摘要:解决方法是用Input取代label控件,详细见下面:<input id="lblBeginTime" runat="server" type="text" tabindex="-1" readonly="readonly" style="background-color: Transparent; text-align: Left; border-style: none; width: 1...
阅读全文
摘要:html标签里面绑定方法:<img src="<%=ImageURLBase%>/Attendance/btn_find.gif" width="20" border="0" style="cursor: hand;" id="imgGetWTP" onclick="javascript:return GetWTP(<%# (Container.DataItemIndex)...
阅读全文
摘要:1、如果一个控制的Enable=false, obj.focus() 不起作用2、如果一个控制的Visable=false,则这个空间在html里面不存在
阅读全文
摘要:获取gridview里面的各个控件的ID:首先在gridview 里面某个按钮注入JS onmouseover='<%#"ShowListMenu(this, "+Convert.ToInt32(Container.DataItemIndex+1)+",GetInnerHTML("+Container.DataItemIndex+"));"%>'>这个showlistmenu是显...
阅读全文