- 博客(5)
- 收藏
- 关注
原创 asp.net文件操作
下面展示一些 内联代码片。// A code blockvar foo = 'bar'; /// <summary> /// 单文件上传 /// </summary> /// <param name="file">文件上传控件</param> /// <param name="filetype">文件类型限制 例...
2020-04-10 16:54:46
135
原创 asp.net生成缩略图
下面展示一些 内联代码片。/// <param name="NewWidth">缩略图宽度</param>/// <param name="NewHeight">缩略图宽度</param>/// <param name="OldPath">原始图像地址</param>/// <param name="NewPat...
2020-04-10 16:50:52
160
原创 分割字符串,保存为数组
public static string[] SplitString(string strContent, string strSplit){ if (strContent.IndexOf(strSplit) < 0){ string[] tmp = { strContent }; return tmp; } return Regex.Split(strConte...
2020-04-10 16:46:00
231
原创 asp.net生成图片水印
context.Response.ContentType = "text/plain"; string imgUrl = context.Request.PhysicalPath;//得到当前处理图片的物理路径 if (File.Exists(imgUrl)) { I...
2020-04-10 16:42:32
184
原创 Asp.net防止注入过滤
Asp.net防止注入过滤. string jk1986_sql = "exec↓select↓drop↓alter↓exists↓union↓and↓or↓xor↓order↓mid↓asc↓execute↓xp_cmdshell↓insert↓update↓delete↓join↓declare↓char↓sp_oacreate↓wscript.shell↓xp_reg...
2020-04-10 16:39:38
309
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人