上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: <script language="javascript" type="text/javascript"> function UserPrint() { bdhtml=window.document.body.innerHtml; var headstr = "<html><head></head><body>"; var footstr = "</body>"; var bodystr = document.all.item("pr 阅读全文
posted @ 2012-01-08 19:37 ajunfly 阅读(12096) 评论(1) 推荐(0) 编辑
摘要: string newDocFileName = Guid.NewGuid().ToString().Replace("-", ""); string strServerPath = Server.MapPath("") + "\\Model.doc"; //模板路径 string strSavePath = Server.MapPath("Doc") + "\\" + newDocFileName + ".doc"; //另存为的路径 strURL = s 阅读全文
posted @ 2011-12-27 23:03 ajunfly 阅读(7416) 评论(0) 推荐(0) 编辑
摘要: javascript操作cookie用document.cookie; 首先是cookie名,对应的值value和有效期 cookie的操作基本上是对字符串的操作和cookie有效期的设置 如下操作window.onload = function() { setCookie("loginName", "sunjp", 2); var cookie = document.cookie; alert(cookie); delCookie("loginName1") alert(getCookie("loginName" 阅读全文
posted @ 2011-11-25 11:59 ajunfly 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Linq查询语句编写工具可以用LinqPad,挺好用的一下是我自己学习Linq to SQL的查询语句//基本查询/*from c in WorkFlowsselect c*///带条件查询/*from c in WorkFlows where c.Pid==1select c*///查询显示不同的列/*from c in WorkFlows select new{ c.ID, c.WorkFlowName}*///排序/*from c in WorkFlowsorderby c.ID descendingselect c*///去除某个字段的重复/*(from c in WorkFlowsw 阅读全文
posted @ 2011-11-10 15:47 ajunfly 阅读(9888) 评论(0) 推荐(1) 编辑
摘要: 添加一个global.asax文件新增如下代码 protected void Application_BeginRequest(object sender, EventArgs e) { string oldUrl = HttpContext.Current.Request.RawUrl; UrlRewrite(oldUrl, @"^(.*)/Index\.htm", @"Default1.aspx"); UrlRewrite(oldUrl, @"^(.+)/view-(\d+)-(.+)\.htm(\?.*)*$", "$ 阅读全文
posted @ 2011-11-07 11:29 ajunfly 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: 图片效果用到的背景图片代码如下,一定要引用jQuery132.js库哦,别的也可以<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>&l 阅读全文
posted @ 2011-10-18 18:03 ajunfly 阅读(7808) 评论(1) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="../jquery132min.js" type=&q 阅读全文
posted @ 2011-10-18 11:27 ajunfly 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 思路:把页面中所有的标签放到一个div中,然后再再最后添加一个空div标签fadeDiv,用fadeDiv遮挡body使fadeDiv渐现<head runat="server"> <title></title> <script src="../jquery132min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { var 阅读全文
posted @ 2011-10-17 10:52 ajunfly 阅读(2455) 评论(0) 推荐(0) 编辑
摘要: 、、、、、、、、、、、、、、、、、、页面代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>MapBar1</title> 阅读全文
posted @ 2011-10-13 18:22 ajunfly 阅读(639) 评论(0) 推荐(0) 编辑
摘要: javascript代码 图片为mid-nei-bg_02.gif function openAlert(str) { str = "常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义"; var imgUrl = "images/mid-nei-bg_02.gif"; var divAlert = document.createElement("div"); divAlert.id = "openAlert"; divAlert.style.position=" 阅读全文
posted @ 2011-09-22 17:37 ajunfly 阅读(303) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页