
C#
专注挖煤二十年
这个作者很懒,什么都没留下…
展开
-
C# 读取MAC地址
using System;using System.Collections.Generic;using System.Text;using System.Management; namespace consolemac{ class Program { static void Main(string[] args)原创 2011-06-12 00:58:00 · 140 阅读 · 0 评论 -
iis默认网站启动不了
Windows XP,IIS默认网站启动不了原因:World Wide Web Publishing服务没有启动,World Wide Web Publishing服务路径是在控制面板--管理工具--服务之中,于是右键启动World Wide Web Publishing服务。若显示找不到指定的程序,卸载系统漏洞KB939373或KB2290570(卸载系统漏洞方法:控制面板--添原创 2012-03-10 19:54:05 · 3471 阅读 · 0 评论 -
请使用RESTORE FILELISTONLY来列出逻辑文件名。RESTORE DATABASE 操作异常终止
在恢复的时候,逻辑文件名不可以修改,指定的物理文件存放的位置必须存在。原创 2012-03-10 18:45:24 · 4521 阅读 · 0 评论 -
解决SqlServer "设备激活错误,请使用 WITH MOVE 选项来标识该文件的有效位置"
还原路径错误原创 2012-03-10 18:42:42 · 1169 阅读 · 0 评论 -
DELETE 语句与 REFERENCE 约束 冲突 解决办法
/*报错为DELETE 语句与 REFERENCE 约束"FK_ProductInfo_Category"冲突。该冲突发生于数据库"eshop",表"dbo.ProductInfo", column 'CategoryId'。DELETE 语句与 REFERENCE 约束"FK_ShoppingCart_ProductInfo"冲突。该冲突发生于数据库"eshop",表"dbo.Sho原创 2012-01-03 17:31:03 · 43278 阅读 · 5 评论 -
ASP.NET 弹出提示框,点击确定后跳转到另一个页面
RegisterStartupScript("false", "alert('提示消息');window.location.href='new.aspx'");原创 2012-01-07 13:53:42 · 6152 阅读 · 0 评论 -
C# 验证输入字符串是否为数字
用正则表达式验证输入是否为数字,含浮点数原创 2011-04-22 22:23:00 · 923 阅读 · 0 评论 -
C# 写一个简单的应用程序
自己写第一个简单的C#应用程序,评委打分系统。原创 2011-04-22 22:20:00 · 859 阅读 · 0 评论 -
C# Socket 编程简单实例
C# Console 编程 服务器端:csharpconsolesokecttestserver.csusing System;using System.Collections.Generic;using System.Text;using System.Net;using System.Net.Sockets; namespace csharpcons原创 2011-06-12 00:03:00 · 4608 阅读 · 0 评论 -
C#创建文件夹,文件
//创建文件夹 string path = "../ProblemResource/" + pid.ToString(); if (Directory.Exists(Server.MapPath("../ProblemResource/"+pid.ToString()))) { Directory.Delete(Server.原创 2012-04-26 10:08:47 · 625 阅读 · 0 评论