摘要:
MessageBox弹出框以及图标:MessageBox.Show("消息内容", "标题", MessageBoxButtons.OK, MessageBoxIcon.Question,MessageBoxDefaultButton.Button1);MessageBox.Show("消息内容", "标题", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk,MessageBoxDefaultButton.Button1);MessageBox.Show("消息内容", "标题", MessageBoxButtons.AbortRetry 阅读全文
摘要:
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... 阅读全文
摘要:
最近做一个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... 阅读全文
摘要:
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... 阅读全文
摘要:
/// <summary> /// 32位md5 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string GetBigMd5(string str) { string cl = str; string ... 阅读全文
摘要:
前几天写东西要用到判断当前时间是否在一个时间段内,比如在21:00和03:00这个时间段内,从网上看了几个都没有考虑时间段夸天的情况,下面是改进的一个DateTime startTime = DateTime.Parse("21:30"); DateTime endTime = DateTime.Parse("13:30 "); if (startTime > startTime) { Da... 阅读全文