郑国聪的程序员之路

04 2010 档案

js提交页面,js修改的label的值掉失的解决方案
摘要:解决方法是用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... 阅读全文

posted @ 2010-04-29 15:01 郑国聪 阅读(576) 评论(0) 推荐(0)

html标签和asp.net在GridView里面绑定js的区别
摘要:html标签里面绑定方法:<img src="<%=ImageURLBase%>/Attendance/btn_find.gif" width="20" border="0" style="cursor: hand;" id="imgGetWTP" onclick="javascript:return GetWTP(<%# (Container.DataItemIndex)... 阅读全文

posted @ 2010-04-29 14:52 郑国聪 阅读(441) 评论(0) 推荐(1)

js一些总结
摘要:1、如果一个控制的Enable=false, obj.focus() 不起作用2、如果一个控制的Visable=false,则这个空间在html里面不存在 阅读全文

posted @ 2010-04-26 10:46 郑国聪 阅读(207) 评论(0) 推荐(0)

JS获取GridView各个控件的ID
摘要:获取gridview里面的各个控件的ID:首先在gridview 里面某个按钮注入JS onmouseover='<%#"ShowListMenu(this, "+Convert.ToInt32(Container.DataItemIndex+1)+",GetInnerHTML("+Container.DataItemIndex+"));"%>'>这个showlistmenu是显... 阅读全文

posted @ 2010-04-02 13:19 郑国聪 阅读(3078) 评论(0) 推荐(0)

导航