文章分类 -  ASP.NET开发(其他未分类)

ASP.NET开发(其他未分类)
ddd
摘要:[代码] 阅读全文
posted @ 2009-05-22 12:25 winny 阅读(74) 评论(0) 推荐(0)
取指定字符串的前面字符串
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->string mm3 = mm.Substring(0, mm.IndexOf("|")); 阅读全文
posted @ 2009-03-12 16:04 winny 阅读(189) 评论(0) 推荐(0)
取某字符后的所有字符串....GOOD!!
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->//string1 = "abc@163.com" //Right(string1, Len(string1) - InStrRev(string1, "@"... 阅读全文
posted @ 2009-03-12 15:51 winny 阅读(308) 评论(0) 推荐(0)
删除文件
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->string delFile = this.TextBox1.Text.ToString(); File.Delete(Server.MapPath(@"upfile\")+de... 阅读全文
posted @ 2009-03-11 22:12 winny 阅读(98) 评论(0) 推荐(0)
文件上传
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->//string upFileName = DateTime.Now.ToString().Replace("-","").Replace(":","").Replace(" ","").ToS... 阅读全文
posted @ 2009-03-11 21:29 winny 阅读(90) 评论(0) 推荐(0)
Asp.net获取客户端真实IP,非代理地址
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> public string GetUserIP() { string _userIP; if(Request.ServerVariables["HTTP_VI... 阅读全文
posted @ 2009-03-11 16:32 winny 阅读(734) 评论(0) 推荐(0)
Asp.NET 随机函数 Random
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 阅读全文
posted @ 2009-03-11 15:03 winny 阅读(625) 评论(0) 推荐(0)
指定的文件夹不存在时,系统自动创建
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->if (!Directory.Exists(this.TextBox2.Text.ToString()))//当文件夹不存在时,自动创建文件夹...前提是导入System.IO命名空间 ... 阅读全文
posted @ 2009-03-09 15:03 winny 阅读(220) 评论(0) 推荐(0)