随笔分类 - 05. Daily Work
工作学习过程的记录
摘要:问题:1. CSS没有正常应用 2. 鼠标点击事件postback有误 3. 下拉子目录不能显示
更新:使用ASP.NET 2.0 CSS Friendly Control Adapters可以解决
阅读全文
摘要:有些时候我们需要提示客户“DO NOT COPY”, 就像在MS Word中所做的那样,昨天遇到这样的case,就尝试用CSS+DIV解决:页面代码如下,还有一些地方需要改进,比如调整水印的大小以覆盖全部页面等:[代码]
阅读全文
摘要:搜集来的,很实用,大家来分享,代码在最下方[代码]
阅读全文
摘要:方法一:使用"•"来当圆角:[代码]方法二:来自:http://www.cnblogs.com/scgw/articles/927682.html[代码]方法三:来自:http://www.cnblogs.com/pointdeng/articles/1171323.html[代码]
阅读全文
摘要:Do you want to draw a calendar with event, just like http://www.google.com/calendar/renderBut you don’t know how to start, right?If so, I suggest you begin with some easier examples, because the...
阅读全文
摘要:
阅读全文

摘要:In that scenario, I have some suggestions:First, please try to keep the node number of TreeView less than 1000, we can find that advice there:http://msdn.microsoft.com/en-us/library/ms529261.aspxRende...
阅读全文
摘要:前些天发了一篇 使用JavaScript选择GridView行的方法汇总(Select row of GridView by JavaScript) 有朋友反馈说不适用于DataGrid,确实,如果要在DataGrid的行中添加JavaScript事件捕捉,必须用下面的代码:[代码]
阅读全文
摘要:JavaScript能访问客户SQL数据库?能!真的能!要求:SQL Server2000(其它版本没试过),且数据库必须安装了WMI扩展(WMI SQL Server Administration Provider,能在SQL Server2000安装光盘的"x86otherwmi" 目录下找到)好了,接下来我们试试代码吧:(code from http://www.devarticles.co...
阅读全文
摘要:使用JavaScript实现:[代码]
阅读全文
摘要:(奇怪,不知道客户要这个效果做什么)效果:如果点击超链接,将正常导向;如果按住Ctrl键并点击超链接,将执行一段JS代码,并且浏览器不会导向或打开新页面[代码]
阅读全文
摘要:先说说我的方法吧,不是最好的,却是代码量最少的一行:[代码]呵呵有点夸张了,具体做法是在GridView的RowDataBound事件里写这么写:[代码]原理很简单,在ASP.NET的页面Render时,GridView的选择、删除、编辑 等事件会产生简单的postback 参数,分别是select$, Update$, Edit$...这样就给我们带来了很大的便利,在上面的例子中,就使用了Sel...
阅读全文
摘要:一个客户说要用DIV+CSS布局,两列,其中导航列宽度不确定(由里面的TreeView控件确定),而与它并列的内容列宽度要做到自适应,也就是内容列宽度+导航列宽==固定值(总宽度)但是,内容列宽度 和导航列宽 都没有一个定值,而网上的大多自适应列宽代码都是基于一个定值的无奈,我写Winform出身的对CSS+DIV知之甚少,只能通过JavaScript来完成了,效果还可以,IE7.0和Firefo...
阅读全文
摘要:如今各种各样的日历控件满天飞(参见http://www.cnblogs.com/blodfox777/archive/2008/08/13/1266639.html),使用ASP.NET Calendar控件的朋友貌似不多了,但今天一个客户的古怪问题却让我想起了它的一个大优点:可以按照自己的要求进行定制!问:Scenario: I have a calendar control in an asp...
阅读全文
摘要:之前发过用POST方式的http://www.cnblogs.com/blodfox777/articles/1271912.html而用__postback比较高阶,代码出自NC01[代码][代码]
阅读全文
摘要:To detect the browser, please try the following code:[代码]in a 64bit lab, the following like information will be show:[代码]
阅读全文
摘要:A customer said he has created a newsletter(HTML format) with background image, and it seems good in outlook 2003/gmail/yahoo/ie6/ie7/opera/fire-foxhowever, just in Outlook2007, the background image h...
阅读全文
摘要:Please try the following code, it will work:[代码][代码]http://forums.asp.net/t/1306676.aspx
阅读全文
摘要:We use window.open will be block by the browsers or blocker tools, and showModalDialogwill not be block by the browsers, but always blocked by blocker tools, the only way to open pop up window which c...
阅读全文
摘要:in fact the onbeforeunload event supported in Firefox browser, but the window.event is not supported in Firefox.So, we can use the following code to stop page from leaving: function SaveRemind() { w...
阅读全文