下一站天后

今朝的容颜老于昨晚

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

09 2008 档案

摘要:break 是跳出for; continue 是继续循环的意思是 中断本次循环 接着做下一循环;return结束本方法。 阅读全文
posted @ 2008-09-27 17:20 孙雅玲 阅读(325) 评论(0) 推荐(0)

摘要:js:window.location.href放在=左边得到当前页面地址,放在右边则为转向。 c#:string url = Request.RawUrl.ToLower();//得到当前页面的url 阅读全文
posted @ 2008-09-26 17:02 孙雅玲 阅读(578) 评论(1) 推荐(0)

摘要: if not exists (select * from QsqPageContent where ObjectID=@ObjectID and ShowType=@ShowType) 阅读全文
posted @ 2008-09-21 20:02 孙雅玲 阅读(930) 评论(0) 推荐(0)

摘要:删除,编辑,列宽度调整,datagrid里使用ddl,连续的数字和英文字符自动换行 阅读全文
posted @ 2008-09-19 16:59 孙雅玲 阅读(545) 评论(6) 推荐(0)

摘要:利用字符串截取的方法抓取所需内容 *注意:看得到的内容里是否包含要截取内容,否则报错!并且div要匹配,否则影响样式。 阅读全文
posted @ 2008-09-17 21:44 孙雅玲 阅读(511) 评论(1) 推荐(0)

摘要:29. 获得一个窗口的大小 document.body.clientWidth; document.body.clientHeight 30. 怎么判断是否是字符 if (/[^/x00-/xff]/g.test(s)) alert("含有汉字"); else alert("全是字符"); 阅读全文
posted @ 2008-09-14 17:27 孙雅玲 阅读(201) 评论(0) 推荐(0)

摘要:三、技巧 1、1=1,1=2的使用,在SQL语句组合时用的较多 "where 1=1" 是表示选择全部 "where 1=2"全部不选, 阅读全文
posted @ 2008-09-14 17:10 孙雅玲 阅读(217) 评论(1) 推荐(0)

摘要:1。比较时间大小的实验 if(DateTime.Compare(dt1,dt2)>0) msg.Text=st1+">"+st2; 2。计算两个时间差值的函数,返回时间差的绝对值: 3。实现计算DateTime1-36天=DateTime2的功能 阅读全文
posted @ 2008-09-13 16:55 孙雅玲 阅读(1632) 评论(0) 推荐(0)

摘要:需求:一个搜索的WINFORM程序 。输入一个图片的尺寸范围、 图片格式 、指定一个要搜索的文件夹把搜到的所有图片路径以列表的形式陈列出来。(路径让人选择就好了,此处有待改进)浏览文件,winform的用OpenFileDialog ;webform的用fileupload 显示图片路径列表用listview,设置view属性:Details;Columns属性:路径。界面效果如下: 本功能涉及... 阅读全文
posted @ 2008-09-13 13:37 孙雅玲 阅读(540) 评论(1) 推荐(0)

摘要: string filter = "1=1 and 2=2"; if(begin!="") filter = filter.Replace("1=1","suCreateDate='"+begin+"'"); if(end != "") filter = filter.Replace("2=2","suCreateDate='"+Convert.ToDateTime(end).AddDays(1)+"'"); dv1.RowFilter = "NickName='"+name+"' and " + filter; dv2.RowFilter = dv1.RowFilter; 阅读全文
posted @ 2008-09-13 08:48 孙雅玲 阅读(674) 评论(1) 推荐(0)

摘要:1、 安装 注册 开始-运行cmd-敲regsvr32 C:\Jmail\Jmail.dll 阅读全文
posted @ 2008-09-12 21:27 孙雅玲 阅读(1762) 评论(2) 推荐(0)

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->ifexists(select*fromdbo.sysobjectswhereid=object_id(N'[dbo].[UP_forums_CodeScheduleType_... 阅读全文
posted @ 2008-09-12 16:40 孙雅玲 阅读(579) 评论(0) 推荐(0)

摘要:html Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->">电子期刊 .cs Code highlighting produced by Actipro CodeHighlighter (freeware) http://w... 阅读全文
posted @ 2008-09-08 11:42 孙雅玲 阅读(214) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2008-09-03 16:32 孙雅玲 阅读(528) 评论(0) 推荐(0)

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ... 阅读全文
posted @ 2008-09-03 16:22 孙雅玲 阅读(291) 评论(0) 推荐(0)

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->string[] ps = txtPort.Text.Trim().Split(';');for(int i = 0 ; i class Program{ static void Main(st... 阅读全文
posted @ 2008-09-03 15:43 孙雅玲 阅读(3054) 评论(0) 推荐(0)

摘要:其他页面传递不同参数方法如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> &Id=">编辑 - 后台接受参数:一般用于后台功能 Code highlighting produced by Actipro CodeHighlighter (fre... 阅读全文
posted @ 2008-09-03 11:03 孙雅玲 阅读(327) 评论(1) 推荐(0)

摘要:创建 DataView 的方法有两种。 1、使用 DataView 构造函数。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->以下代码示例演示如何使用 DataView 构造函数来创建 DataView。RowFilter、Sort 列和 DataV... 阅读全文
posted @ 2008-09-02 17:13 孙雅玲 阅读(417) 评论(0) 推荐(0)

摘要:页面切换不到视图里面herf里如果包含“”,就用‘’herf=‘’,或不写,因为他本身不规范,否则导致页面无法切换。 尽量不要再签入的状态下看视图页面,.net的bug容易自动添加不需要的div之类的,使页面样式改变。 阅读全文
posted @ 2008-09-02 09:34 孙雅玲 阅读(290) 评论(0) 推荐(0)

摘要:管理员不一定是点击“退出”来退出后台管理界面的,大多数情况下是关闭浏览器,甚至死机关闭进程,断电。那么我们如何知道管理员有没有退出呢?这里主要考虑“关闭浏览器”的情况,但用以下的方法将所有情况统统包括在内,也属于编程技巧吧!记录下来,主要让自己回顾思路,熟悉ajax的使用。注意使用ajax的页面一定要,由于我这里用了一个框架页面,没有runat="server",找了半天页面里也没有注册... 阅读全文
posted @ 2008-09-01 17:40 孙雅玲 阅读(478) 评论(0) 推荐(0)

摘要:web.config里配类似我们配数据库连接一样。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> --> 注册页面注册用户名时过滤掉... 阅读全文
posted @ 2008-09-01 17:11 孙雅玲 阅读(484) 评论(0) 推荐(0)