追求永无止尽

-- Ж飞羽忘寒Ж

导航

2010年1月25日

js中如何获取地址栏的参数值

摘要: <script>function GetQueryString(sProp) { var re = new RegExp("[&,?]"+sProp + "=([^\\&]*)", "i"); var a = re.exec(document.location.search); if (a == null) return ""; return a[1]; } 取值方法... 阅读全文

posted @ 2010-01-25 20:13 Ж飞羽忘寒Ж 阅读(363) 评论(0) 推荐(0)

javascript获取select的值全解

摘要: 获取显示的汉字 document.getElementById("bigclass").options[window.document.getElementById("bigclass").selectedIndex].text 获取数据库中的id window.document.getElementById("bigclass").value 获取select组分配的索引id window.do... 阅读全文

posted @ 2010-01-25 19:58 Ж飞羽忘寒Ж 阅读(143) 评论(0) 推荐(0)

直接在浏览器打开pdf文件,ppt文件,doc文件,xls文件,rar文件,zip文件等

摘要: 直接在网页中打开文件 response.setHeader("Content-Disposition","inline; filename=test.pdf"); 用于下载文件 response.setHeader("Content-Disposition","attachment;filename=test.pdf"); 阅读全文

posted @ 2010-01-25 18:27 Ж飞羽忘寒Ж 阅读(556) 评论(0) 推荐(0)

ASP.NET下用Windows Media Player播放WMV格式视频

摘要: <object type="video/x-ms-wmv"data="http://www.sarahsnotecards.com/catalunyalive/ »fishstore.wmv"width="320" height="260"><param name="src"value="http://www.sarahsnotecards.com/catalunyalive/ ... 阅读全文

posted @ 2010-01-25 18:21 Ж飞羽忘寒Ж 阅读(393) 评论(0) 推荐(0)

Open Flash Chart .NET

摘要: Open Flash Chart .NET (OFC.NET) is based on the Open Flash Chart project located athttp://teethgrinder.co.uk/open-flash-chart (or SourceForge). Source code for OFC.NET is located on a Subversion serve... 阅读全文

posted @ 2010-01-25 14:23 Ж飞羽忘寒Ж 阅读(1077) 评论(0) 推荐(0)

asp.net 操作excel的实现代码

摘要: (1).为了方便,我们就把Excel文件假定在C盘的根目录,名称为test.xls。  (2).为了读取Excel文件,我们必须了解一个名称空间(NameSpace)--System.Data.Oledb。System.Data.Oledb中有三个对象分别是OleDbConnection,OleDbCommand,OledbDataAdapter。我们就是通过他们来访问Excel文件的。  i&g... 阅读全文

posted @ 2010-01-25 14:16 Ж飞羽忘寒Ж 阅读(282) 评论(0) 推荐(0)

Window.ShowModalDialog使用手册

摘要: Window.ShowModalDialog使用手册 基本介绍:   showModalDialog() (IE 4+ 支持)   showModelessDialog() (IE 5+ 支持)   window.showModalDialog() 方法用来创建一个显示HTML内容的模态对话框。   window.showModelessDialog() 方法用来创建一个显示HTML内容的非模态对... 阅读全文

posted @ 2010-01-25 13:58 Ж飞羽忘寒Ж 阅读(122) 评论(0) 推荐(0)

js判断是否是数字

摘要: function checkRate(input){ var re = /^[0-9]+.?[0-9]*$/; //判断字符串是否为数字  var re =/^[1-9]+[0-9]*]*$/; //判断正整数 var nubmer = document.getElementById(input).value; if (!re.test(nubmer)) { alert("请输入数字"); do... 阅读全文

posted @ 2010-01-25 13:48 Ж飞羽忘寒Ж 阅读(250) 评论(0) 推荐(0)