随笔分类 - 小技巧
摘要:author:梅花雪 from: http://www.soelin.cn/tec/hc/2006/9/214.asp今天贴个日期格式化的,用法很简单Date.format('yy-MM-dd');其中'yy-MM-dd'可以自定义
阅读全文
摘要:from :http://ayi.ck97.com/post/190.html随着WEB标准化的进程,网站正在逐渐向XHTML过渡,在这个过程中,也慢慢发现了非常多的问题。原先的泡泡提示组件就已经严重出现错误,经过一次大手术后,现已完全支持XHTML。新版本实现功能:1、完美支持XHTML,于IE和FireFox长时间测试正常2、实现泡泡大小自适应效果如下:460) {this.resized=t...
阅读全文
摘要:生成隨機數代碼:one: '不重復數字 Public Function ran2()Function ran2(ByVal num As Int16) As String Dim s As String = "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z" Dim sz...
阅读全文
摘要:9.1.1 test.xml 文件内容 title 1 content 1 title 2 content 2 title 3 content 3 title 4 content 4 title 6 content 7 9.1.2 html 文件内容shawl.qiu template
阅读全文
摘要:我们在做开发时,经常要做表单验证,比如验证文本框必须填内容时,而文本框又很多时,传统的做法是逐个判断: if (form1.name.value == "") { alert("Sorry,please input your name!") form1.focus(); } 这样一来要写的代码太多了,有没有“偷懒”的方法呢,答案是肯定的,请看下面的代码:“偷懒”的表单验证DemoName:Sex ...
阅读全文
摘要:來自:http://blog.csdn.net/e23/archive/2005/12/20/557536.aspx上传图片上传即可见的javascript
阅读全文
摘要:www.smallrain.nethttp://www.51windows.net/data/?url=/data/files/file_816.asphttp://bbs.hidotnet.com/download/hiForums051031.rar 有.net版的popup组件,拖拽一个,设置一下就可以了。http://www.cnblogs.com/Dream/archive/2005/0...
阅读全文
摘要:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We...
阅读全文
摘要:/*Fix Table Row and Col Style*/.fixLeftTop{ POSITION: relative; Left: expression(this.offsetParent.scrollLeft-1); TOP: expression(this.offsetParent.scrollTop-1); z-index:103 ;}.fixTop{ ...
阅读全文
摘要:顯示後還要形成縮略圖:js: function setImgSize(imgID,maxWidth,maxHeight){ var img = document.images[imgID]; if(maxWidth maxHeight) { img.height = maxHeight; } return tr...
阅读全文
摘要:發送郵件: Function send_mail()Function send_mail(ByVal s_from As String, ByVal pwd As String, ByVal s_to As String, ByVal m_title As String, ByVal m_body As String, ByVal m_file As String) As String ...
阅读全文
摘要:关闭自动完成 autocomplete="off"
阅读全文
摘要:在GridView1_RowDataBound事件中:Dim str As String = "demand_info.aspx?id=" + Server.UrlEncode("歡迎光臨!!")e.Row.Cells(1).Text = "" + e.Row.Cells(1).Text + "" e.Row.Cells(2).Text = "" + e.Row.Cells(2).T...
阅读全文
摘要:只是GridView跟DataGrid原本設計的行為有點不同GridView在bind資料之前所隱藏欄位都不會受到DataBind()的影響所以也就不會綁定任何資料你可以先讓所有欄位都是可見的然後在RowCreated事件中再用程式隱藏欄位 1 public void GridView_OnRowCreated(object sender, GridViewRowEventArgs e...
阅读全文