.net
文章平均质量分 52
iteye_12157
这个作者很懒,什么都没留下…
展开
-
net1.1项目升级到2.0所遇问题总结
这几天升级了一下原来的1.1项目,发现了一些问题,总结一下放在这里,也提醒还没有来得及升级或准备升级的朋友,升级的过程中少走弯路,少浪费时间。1.Global.asax文件的处理形式不一样,转化后将出现错误,在vs2003中Global.asax具有代码后置文件,2.0下, 将代码分离文件移到 App_Code 目录下,以便使其自动变为可通过应用程序中的任意 ASP.NET 页面访问。“Code-...原创 2009-03-03 12:33:06 · 72 阅读 · 0 评论 -
vista下装vs2005
操作系统:Microsoft Windows Vista Enterprise。开发环境:Microsoft Visual Studio 2005 Team Suite。 执行Setup.exe.之后,还没有开始安装,在准备阶段就弹出提示:没有满足最低要求,需要Windows XP Service Pack 2。因为Vista是在VS2005之后才完成,所以VS2005并不认识Vista。...原创 2009-03-03 12:35:21 · 102 阅读 · 0 评论 -
c#一次读取一行文本文件
本示例使用 StreamReader 类的 ReadLine 方法将文本文件的内容读取(一次读取一行)到字符串中。所有文本行都保存在字符串 line 中并显示在屏幕上。 int counter = 0;string line;// Read the file and display it line by line.System.IO.StreamReader file = new Syst...2009-03-03 13:32:39 · 1326 阅读 · 0 评论 -
C#实现简繁转换
在解决方案中添加一个引用Microsoft Visual Basic然后这就是例子public string SimTOTra(string str){ System.Globalization.CultureInfo cl=new System.Globalization.CultureInfo("zh-CN",false); str=Microsoft.VisualBasic.S...原创 2009-03-03 13:33:34 · 119 阅读 · 0 评论 -
C#实现注销、重启和关机代码
首先要导入对命名空间using System.Runtime.InteropServices;的引用[StructLayout(LayoutKind.Sequential, Pack = 1)] internal struct TokPriv1Luid ...原创 2009-03-03 13:34:23 · 109 阅读 · 0 评论