摘要: MessageBox弹出框以及图标:MessageBox.Show("消息内容", "标题", MessageBoxButtons.OK, MessageBoxIcon.Question,MessageBoxDefaultButton.Button1);MessageBox.Show("消息内容", "标题", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk,MessageBoxDefaultButton.Button1);MessageBox.Show("消息内容", "标题", MessageBoxButtons.AbortRetry 阅读全文
posted @ 2011-01-05 10:41 fengyun99 阅读(378) 评论(4) 推荐(0) 编辑
摘要: Select CONVERT(varchar(100), GETDATE(), 0): 07 16 2010 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 07/16/06Select CONVERT(varchar(100), GETDATE(), 2): 06.07.16Select CONVERT(varchar(100), GETDA... 阅读全文
posted @ 2010-07-16 14:06 fengyun99 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 最近做一个wap的跳转,发现有一小部分手机不支持Response.Redirect,为了完全之策,采用下面这种方式,输出一个wml页面,采用timer定时跳转<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.o... 阅读全文
posted @ 2010-06-24 14:14 fengyun99 阅读(580) 评论(0) 推荐(0) 编辑
摘要: DateTime dt=DateTime.Now;//当前时间DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") 24小时制DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") 12小时制DateTime startWeek=dt.AddDays(1-Convert.ToInt32(dt.DayOfWeek.ToString... 阅读全文
posted @ 2010-04-21 15:51 fengyun99 阅读(268) 评论(1) 推荐(0) 编辑
摘要: /// <summary> /// 32位md5 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string GetBigMd5(string str) { string cl = str; string ... 阅读全文
posted @ 2010-04-12 17:24 fengyun99 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 前几天写东西要用到判断当前时间是否在一个时间段内,比如在21:00和03:00这个时间段内,从网上看了几个都没有考虑时间段夸天的情况,下面是改进的一个DateTime startTime = DateTime.Parse("21:30"); DateTime endTime = DateTime.Parse("13:30 "); if (startTime > startTime) { Da... 阅读全文
posted @ 2009-12-30 14:48 fengyun99 阅读(1196) 评论(0) 推荐(0) 编辑