摘要: C#写入记事本(txt)文件方法一: FileStream stream = new FileStream(@"d:\aa.txt",FileMode.Create);//fileMode指定是读取还是写入 StreamWriter writer = new StreamWriter(stream) 阅读全文
posted @ 2016-02-23 15:38 段江涛IT 阅读(6628) 评论(0) 推荐(0) 编辑
摘要: 255) fc=255; if(bc>255) bc=255; //产生三个随机数,然后定义出一种颜色 int r=fc+random.nextInt(bc-fc); int g=fc+random.nextInt(bc-fc); int b=fc+random.nextInt(bc-fc); return new Color(r,g,b); } %> 阅读全文
posted @ 2016-02-23 15:29 段江涛IT 阅读(460) 评论(0) 推荐(0) 编辑
摘要: --创建登录账户和数据库用户 exec sp_addlogin 'sysAdmin','123456' exec sp_grantdbaccess 'sysAdmin','aa' --给数据库用户赋权限 grant select,update,insert,delete on userInfo to 阅读全文
posted @ 2016-02-04 13:26 段江涛IT 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 在windows7中打开DNN网站有以下问题: CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\life\ab8f2a32\c1abfcbc\App_Web_login.as 阅读全文
posted @ 2016-02-04 13:24 段江涛IT 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: 实体类如下: public enum ESex { Boy, Girl } public class Person { public String Name { get; set; } public String Address { get; set; } public String Age { g 阅读全文
posted @ 2016-02-03 17:30 段江涛IT 阅读(5589) 评论(0) 推荐(1) 编辑
摘要: 1.使用微软自带的System.Web.Extensions.dll转换,该DLL文件一般存在于如下路径:c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Extensions.dll 具体操作如下: 阅读全文
posted @ 2016-02-03 17:18 段江涛IT 阅读(8340) 评论(0) 推荐(0) 编辑
摘要: 要实现EditText的自动换行需要实现如下设置: <EditText android:id="@+id/function_lifingcost_edit_txtRemark" android:layout_width="fill_parent" android:layout_height="wra 阅读全文
posted @ 2016-02-02 13:59 段江涛IT 阅读(6700) 评论(0) 推荐(0) 编辑
摘要: 1.在运行里面输入cmd调出dos窗口,然后在dos窗口中输入sqlplus /nolog 如:D:\oracle\ora92\bin>sqlplus /nolog 2.输入连接命令 如:SQL> conn /as sysdba 3.修改密码 如:alter user system identifi 阅读全文
posted @ 2016-02-01 14:41 段江涛IT 阅读(862) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Text; using System.Net; using System.Net.Mail; namespace NetMailSend { class Programe { /// <summ 阅读全文
posted @ 2016-02-01 10:15 段江涛IT 阅读(231) 评论(0) 推荐(0) 编辑
摘要: NotifyIcon 控件的常用属性属性:Icon类型:System.Drawing.Icon说明:将在系统任务栏中显示的图标。可以在设计时指定,也可在运行时动态指定。属性:Text类型:String说明:用于指定当鼠标停留在小图标上时显示的信息。属性:Visible类型:Bool说明:用于设置小图 阅读全文
posted @ 2016-01-29 15:00 段江涛IT 阅读(494) 评论(0) 推荐(0) 编辑
页脚HTML代码