摘要: /* *除去字符串中的中文字符 */ CREATE FUNCTION [dbo].[fn_GSB_DropChinese] (@value varchar(1000)) returns varchar(1000) AS begin declare @returnchar varchar(100) d 阅读全文
posted @ 2022-08-08 16:21 ~且听风吟~ 阅读(979) 评论(0) 推荐(0) 编辑
摘要: public class RandomCode : IHttpHandler, System.Web.SessionState.IRequiresSessionState //这里就是实现的接口 { public void ProcessRequest(HttpContext context) { 阅读全文
posted @ 2022-07-15 09:26 ~且听风吟~ 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.session存储和获取对象类 /// <summary> /// session保存对象 /// </summary> [HttpGet] public void SetLogin() { Models.Login lg = new Models.Login(); lg.UserCode = 阅读全文
posted @ 2022-07-08 10:14 ~且听风吟~ 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 引用:ThoughtWorks.QRCode.dll using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Drawing; using System.Tex 阅读全文
posted @ 2022-06-30 17:15 ~且听风吟~ 阅读(497) 评论(0) 推荐(0) 编辑
摘要: string url = "图片地址"; System.Net.WebRequest webreq = System.Net.WebRequest.Create(url); System.Net.WebResponse webres = webreq.GetResponse(); using(Sys 阅读全文
posted @ 2022-06-30 16:00 ~且听风吟~ 阅读(754) 评论(0) 推荐(0) 编辑
摘要: FOR XML PATH 简单介绍 首先来介绍一下FOR XML PATH ,假设现在有一张兴趣爱好表(hobby)用来存放兴趣爱好,表结构如下: 接下来我们来看应用FOR XML PATH的查询结果语句如下: SELECT * FROM hobby FOR XML PATH 结果: <row> < 阅读全文
posted @ 2022-06-28 17:18 ~且听风吟~ 阅读(720) 评论(0) 推荐(0) 编辑
摘要: STUFF():在 SQL Server 中,stuff() 函数用于从源字符串中删除给定长度的字符序列,并从指定的起始索引插入给定的字符序列。 用法: STUFF (source_string, start, length, change_string) source_string:字符数据 st 阅读全文
posted @ 2022-06-22 17:26 ~且听风吟~ 阅读(10457) 评论(0) 推荐(1) 编辑
摘要: select stuff((select ','+title from tb for xml path('')),1,1,'') --其中tb是表名,title是要合并的表中的字段名称 阅读全文
posted @ 2022-06-22 17:10 ~且听风吟~ 阅读(1577) 评论(0) 推荐(0) 编辑
摘要: 1、利用FormData实现文件上传 <input type="file" id="avatar" name="avatar"> <button type="button">保存</button> ('button').click(function(){ var files = $('#avatar 阅读全文
posted @ 2022-05-19 17:23 ~且听风吟~ 阅读(8915) 评论(0) 推荐(0) 编辑
摘要: 如下ul标签中的li标签为例 <body> <ul id="city"> <li>北京</li> <li>上海</li> <li>天津</li> <li>重庆</li> </ul> </body> 一.JS的遍历方式 $(function (message) { // 获取到UI下的所有Li标签 v 阅读全文
posted @ 2022-05-19 17:06 ~且听风吟~ 阅读(527) 评论(0) 推荐(0) 编辑