文章分类 - ASP.NET开发(其他未分类)
ASP.NET开发(其他未分类)
取指定字符串的前面字符串
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->string mm3 = mm.Substring(0, mm.IndexOf("|"));
阅读全文
取某字符后的所有字符串....GOOD!!
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->//string1 = "abc@163.com" //Right(string1, Len(string1) - InStrRev(string1, "@"...
阅读全文
删除文件
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->string delFile = this.TextBox1.Text.ToString(); File.Delete(Server.MapPath(@"upfile\")+de...
阅读全文
文件上传
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->//string upFileName = DateTime.Now.ToString().Replace("-","").Replace(":","").Replace(" ","").ToS...
阅读全文
Asp.net获取客户端真实IP,非代理地址
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> public string GetUserIP() { string _userIP; if(Request.ServerVariables["HTTP_VI...
阅读全文
Asp.NET 随机函数 Random
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->
阅读全文
指定的文件夹不存在时,系统自动创建
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->if (!Directory.Exists(this.TextBox2.Text.ToString()))//当文件夹不存在时,自动创建文件夹...前提是导入System.IO命名空间 ...
阅读全文
浙公网安备 33010602011771号