c#设置软件开机自动运行,修改注册表
#region /// /// 开机启动项 /// /// 是否启动 /// 启动值的名称 /// 启动程序的路径 Application.ExecutablePath public static void RunWhenStart(bool Started, strin …… 阅读全文
#region /// /// 开机启动项 /// /// 是否启动 /// 启动值的名称 /// 启动程序的路径 Application.ExecutablePath public static void RunWhenStart(bool Started, strin …… 阅读全文
/// /// POST提交XML文件获取返回数据 /// /// 网址 /// XML数据 /// private string PostXml(string url, string strPost) { string result = ""; StreamWriter myWri …… 阅读全文
string strxml = "121122111222"; DataSet ds = new DataSet(); Stream stream = new MemoryStream(Encoding.Default.GetBytes(strxml)); ds.ReadXml(stream); GridView1 …… 阅读全文
function copyToClipBoard(a) { window.clipboardData.setData("Text", a); alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友"); } function getEditorContents() { v …… 阅读全文
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class SplitContent : System.Web.UI.Page{ …… 阅读全文
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.W …… 阅读全文
protected void Page_Load(object sender, EventArgs e) { Response.ContentType = "text/vnd.wap.wml"; StringBuilder builder = new StringBuilder(); builder.AppendLine(""); …… 阅读全文
可访问http://tool.chinaz.com/regex ,得出以下正则表达式匹配结果正则表达式 (CI)[\d]{12}|(10)[\d]{2}测试字符串 CI2013071800072000010010001ci20130718000711andi1002000_30100411100CI201307180007 …… 阅读全文