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

2010年5月13日

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Drawing.Drawing2D;namespace WindowsTime{ public partial class TimeCustomControl : Control { public... 阅读全文

posted @ 2010-05-13 14:42 达奇 阅读(697) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;namespace Dachie{ class Program { static void Main(string[] args) { Assembly a = Assembly.LoadFrom(@"DLL文件绝对路径"); Type[] mytypes = a.GetTypes(); ... 阅读全文

posted @ 2010-05-13 14:31 达奇 阅读(392) 评论(0) 推荐(0) 编辑

摘要: using System; using System.Collections.Generic; using System.Net; using System.Text.RegularExpressions; namespace QQ { class QZone { private List<long> BlogList = null; public long QNumber; public Dictionary<long, QBlogData> BlogDataDictionary = nu... 阅读全文

posted @ 2010-05-13 14:28 达奇 阅读(872) 评论(2) 推荐(0) 编辑

摘要: <html><head><title>blog</title><meta http-equiv=content-type content="text/html; charset=gb2312"><style>body{border:0px;margin:0px;overflow:hidden;background-color:transparent;font-family:宋体;}.page{position:absolute;width:700px;border:1px solid #999;back 阅读全文

posted @ 2010-05-13 13:42 达奇 阅读(289) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Windows.Forms;namespace Dachie{ static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableV... 阅读全文

posted @ 2010-05-13 13:37 达奇 阅读(365) 评论(0) 推荐(1) 编辑

摘要: 1 将系统时间转换成UNIX时间戳DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970,1,1));DateTime dtNow = DateTime.Parse(DateTime.Now.ToString());TimeSpan toNow = dtNow.Subtract(dtStart);string timeStamp = toNow.Ticks.ToString();timeStamp = timeStamp.Substring(0,timeStamp.Length - 7);2将UNIX时 阅读全文

posted @ 2010-05-13 13:32 达奇 阅读(463) 评论(0) 推荐(0) 编辑

摘要: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="443" height="300"> <param name="movie" value="images/bcastr31.swf" 阅读全文

posted @ 2010-05-13 13:30 达奇 阅读(537) 评论(0) 推荐(0) 编辑

摘要: 使用Windows Live Writer 插入代码块的时候出错啦(空指针)找了好多资料 终于找到一个最不起眼的网页 终于解决了!点击下载下载后覆盖到Windows Live Writer 安装目录!希望可以解决你的问题! 阅读全文

posted @ 2010-05-13 13:28 达奇 阅读(239) 评论(0) 推荐(1) 编辑

摘要: 花了点时间整理了一下ASP.NET Web.config配置文件的基本使用方法。很适合新手参看,由于Web.config在使用很灵活,可以自定义一些节点。所以这里只介绍一些比较常用的节点。<?xml version="1.0"?><!--注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“Asp.Net 配置”选项。设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 "Windows"Microsoft. 阅读全文

posted @ 2010-05-13 13:05 达奇 阅读(1574) 评论(0) 推荐(0) 编辑

摘要: 这东西我早晚会用到的,怕丢了,先转载!《当老温遭遇C#》之虚拟主机管理系统 【附核心实现源码】【另可提供中国各大域名服务端接口】[收藏]老温点评:上次发布了探针后,我决定把相关的知识也理一下,方便于大家,这个是我四年前的作品,练手作,也花了我很多时间,所以代码比较凌乱!现大网上大多数实现虚拟主机管理系统的都是基于ASP+COM或PHP+COM,而且都是收费,看着想改个地方都被约束着,本文凭借C#之光辉打造强大的虚拟主机平台。将实现FTP,IIS,SQL等动态管理,包括在线解压缩的实现等!您可以利用本文涉及到的知识进行多用户域名绑定,多用户在线提供内容服务,对于博客可以实现独立国际域名绑定服务等 阅读全文

posted @ 2010-05-13 13:00 达奇 阅读(949) 评论(0) 推荐(0) 编辑

摘要: 原先还可以记录密码的,现在不能了,绝对不是WINDOWS7的缘故,不过也找到了另一个方法!net use Z: \\Server\源代码管理盘 密码 /USER:用户名 阅读全文

posted @ 2010-05-13 12:55 达奇 阅读(245) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Text;using System.Text.RegularExpressions;namespace Dachie.Common{ /// <summary> /// Common 的摘要说明。 /// </summary> public class RegexComm { //private const string REG_DATE = @"^(\d{2}|\d{4})[\-\/]((0?[1-9])|(1[0-2]))[\-\/]((0?[1-9])|((1|2)[0-9])|30|31)$" 阅读全文

posted @ 2010-05-13 12:52 达奇 阅读(3886) 评论(1) 推荐(1) 编辑

摘要: using System;using System.Data; namespace Dachie.Common{ /// <summary> /// 页面跳转类 /// </summary> public abstract class Message { public Message() { // // TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 提示信息并返回 /// </su... 阅读全文

posted @ 2010-05-13 12:51 达奇 阅读(515) 评论(0) 推荐(0) 编辑

摘要: 已优化,请参照 http://www.cnblogs.com/dachie/archive/2010/09/26/1835995.html 阅读全文

posted @ 2010-05-13 12:48 达奇 阅读(215) 评论(0) 推荐(0) 编辑

摘要: /// <summary> /// 获取Ip地址 /// </summary> /// <returns></returns> public static string GetIp() { string user_IP; if (System.Web.HttpContext.Current.Request.ServerVariables["HTTP_VIA"] != null) { user_IP = System.Web.HttpContext.Current.Request.ServerVariables["HT 阅读全文

posted @ 2010-05-13 12:46 达奇 阅读(359) 评论(0) 推荐(0) 编辑

摘要: http://sms.api.bz/fetion.php?username=自己的手机号&password=密码&sendto=发送到手机号码&message=信息调用示例代码 public bool FetionSend(string user, string pwd, string toUser, string content) { bool b = false; string url = "https://sms.api.bz/fetion.php?username=" + user + "&password=" + 阅读全文

posted @ 2010-05-13 12:42 达奇 阅读(535) 评论(2) 推荐(0) 编辑

摘要: private string ImportFromFile() { #region Word数据处理 //创建一个数据链接 try { #region 打开Word文档 object FileName = GetOpenFileName(); if (FileName==null ||FileName.ToString().Trim()=="") return null; object oMissing = System.Reflection.Missing.Value; ProgressForm ff = new ProgressForm("正在获取数据,请稍候 阅读全文

posted @ 2010-05-13 12:41 达奇 阅读(367) 评论(0) 推荐(0) 编辑

摘要: 一、表格代码之行列基础 1.一行一列表格 一行一列代码如下: <TABLE borderColor=#0033ff cellSpacing=2 width="92%" align=center bgColor=#ff00ff border=2> <TBODY> <TR bgColor=#ddff99 height=50> <TD><FONT size=4>一行一列</FONT></TD> </TR></TBODY></TABLE> 2.一行四列表格 一行四 阅读全文

posted @ 2010-05-13 12:36 达奇 阅读(1372) 评论(1) 推荐(0) 编辑

摘要: ScriptManager和UpdatePanel控件联合使用可以实现页面异步局部更新的效果。其中的UpdatePanel就是设置页面中异 步局部更新区域,它必须依赖于ScriptManager存在,因为ScriptManger控件提供了客户端脚本生成与管理UpdatePanel的功 能。几个重要的属性: ScriptManager控件的EnablePartialRendering属性:true-实现页面的异步局部更新;false-实现全页面的刷新。 UpdatePanel控件的RenderMode属性:InLine-UpdatePanel控件被解析成HTML的<span>标记;B 阅读全文

posted @ 2010-05-13 12:35 达奇 阅读(778) 评论(0) 推荐(0) 编辑

摘要: 查询所有表SELECT TableName = CASE WHEN A.COLORDER=1 THEN D.NAME ELSE D.NAME END, FieldID = A.COLORDER, FieldName = A.NAME, Mark = CASE WHEN COLUMNPROPERTY( A.ID,A.NAME, 'ISIDENTITY ')=1 THEN '√ 'ELSE ' ' END, Prik = CASE WHEN EXISTS(SELECT 1 FROM SYSOBJECTS WHERE XTYPE= 'PK &# 阅读全文

posted @ 2010-05-13 12:33 达奇 阅读(541) 评论(0) 推荐(0) 编辑