
asp.net(C#)
文章平均质量分 71
landy_shasha
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[收集]在winfrom(c#) 下如何用程序删除本机的所有cookies?
Cookies的存放地址一般是:C:/Documents and Settings/用户名/Cookies用户名可以通过系统代码获得:string UserName=System.Environment.UserName;cookies文件夹中的"index.dat"这个文件无法删除.只好绕过它.string strUserName = System.Environment.UserName;原创 2007-01-06 15:46:00 · 1057 阅读 · 0 评论 -
[收集]Cookie,XML(建立xml文档,和查找一个结点)
1.关于Cookie:(1)制作:private void Button3_Click(object sender, System.EventArgs e) { HttpCookie cookUserInfo = new HttpCookie("UserInfo", System.Guid.NewGuid().ToString()); cookUserInfo["FirstNam原创 2007-01-06 15:52:00 · 676 阅读 · 0 评论 -
[收集]MD5的加密在.net中的应用
1.MD5编码在asp.net中的密码和用户名中的应用 private string strInfo_StoreName = ""; private string strInfo_StorePassword = ""; private string strPathName = "c://Inetpub//wwwroot//port//Administrator.txt"; privat原创 2007-01-06 15:54:00 · 618 阅读 · 0 评论 -
[收集]用asp.net调用dos命令~(通过cmd来执行)
private void Button1_Click(object sender, System.EventArgs e) { CallExe( @"md c:/wxd" ); //这里用了@的话,可以不用写成C://wxd了 } private void CallExe(string argm) { Process p = new Process(); p.原创 2007-01-06 15:58:00 · 864 阅读 · 0 评论 -
asp.net中利用OWC组件生成EXCEL表
//请在项目中引用OWC11(COM组件)OWC11.SpreadsheetClass xlsheet =new OWC11.SpreadsheetClass(); //合并单元格 xlsheet.get_Range(xlsheet.Cells[1,1],xlsheet.Cells[1,14]).set_MergeCells(true); xlsheet.ActiveShee原创 2007-01-16 13:47:00 · 938 阅读 · 0 评论 -
c#.net常用函数和方法集
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre转载 2007-01-16 13:56:00 · 478 阅读 · 0 评论 -
VB.NET/C#导出到Excel的方法
先在VB的工程中引用“Microsoft Excel 11.0 Object ”11.0是版本号,不重要的,Excel2000是9.0申明变量 Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Set xlApp = CreateO原创 2007-01-16 14:02:00 · 1422 阅读 · 0 评论