上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 主要用到sql 函数 DATEDIFF(datepart,startdate,enddate) sql 语句,设 有 数据库表 tableA(日期字段ddate) ——查询 今日 select * from tableA where DateDiff(d... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: ashx层 using System;using System.Text;using System.Web;using Model;using BLL;using System.Drawing;using System.IO;using System.Net;... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 网页版登录。https://blog.csdn.net/wybshyy/article/details/103121598 WebService.ashx using System;using System.Text;using System.Web;us... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 接口版登录。https://blog.csdn.net/wybshyy/article/details/103121796 //phone.aspx ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 方法一。 1、建立List用于存放多条语句 /// /// 保存表单/// /// protected void save(){ List list = new List(); list.Add(string.Format("insert into... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(91) 评论(0) 推荐(0) 编辑
摘要: DELETE 语句与 REFERENCE 约束"fk_newstypeid"冲突 解决办法: 在数据库中新建查询: alter table news drop CONSTRAINT fk_newstypeid 再重新执行delete就可以了 ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 背景:我需要做一个动态名片。背景图固定,把名字或其他区域的字,动态换 然后生成一张新图, 这是后台.CS类 有哪里不懂留言一起研究 using System;using System.Collections;using System.Collections.G... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Bitmap => byte[] Bitmap b = new Bitmap( "test.bmp "); MemoryStream ms = new MemoryStream(); b.Save(ms,Syste... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: 转自cloud.tencent.com/developer/article/1068483 只贴快速使用的片段了 ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(86) 评论(0) 推荐(0) 编辑
摘要: HTML部分 上传图片: ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 在安装sqlserver2008、2012等时选择的是默认实例,服务器名称也就是电脑的名称,特别是登录本地的数据库,需要输入电脑用户名称加上SQLEXPRESS 例如:zhangsan\SQLEXPRESS 而不是自己本机的ip地址:192.168.1.xx ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: 也不知道啥原因,昨天还行,今天就连不上了,查半天,我重启下就可以了。 net stop mysql net start mysql 如果重启前,找不到MYSQL服务。 上个文章:https://blog.csdn.net/wybshyy/article/det... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 昨天还好好的,今天就自己消失了 CMD命令行输入 mysqld.exe -install 然后再去系统服务中找到mysql 点击之后 左侧栏中点击启动 然后在输入 mysql -uname -ppassword 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(177) 评论(0) 推荐(0) 编辑
摘要: [mysqld] character-set-server=utf8 #绑定IPv4和3306端口 bind-address = 0.0.0.0 port = 3306 sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBST... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 点开ABS或ABP的设置中心,点以文本编辑,把下面的复制进去,保存 163.com##[id="dlFrame_l"] 里面放ID 规则开始------------------------------------------------------------... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: Sql Prompt---Unable to connect to the Redgate Client Service 今天在使用SQLPrompt时,突然发现所有的提示都不能用了,在百度上搜索无果,刚刚在Google搜索,果然找到了自己想要的答案,今天... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(266) 评论(0) 推荐(0) 编辑
摘要: WHERE CAST(CONVERT(varchar,T0.TempInTime,112) AS int) >=20190101 AND CAST(CONVERT(varchar,T0.TempInTime,112) AS int)<=2019031... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 两种方法: 原: SELECT (Quantity*Price)/(Quantity*UnitPrice) AS [平均值] FROM ##表 报错:遇到以零作除数错误 1、在除数那里判断分母是否为0(用‘NULLIF’函数) SELECT (Quant... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 1,工具免不要积分的百度盘的 方法连接:https://pan.baidu.com/s/1saNRIv6_FdPcjEQV2puWpQ 工具连接:https://pan.baidu.com/s/1I4AQss2UKCBq5D7BNCX4PQ 2,安装SQL P... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(633) 评论(0) 推荐(0) 编辑
摘要: jquery ajax调用webservice(C#)要注意的几个事项: 1、web.config里需要配置2个地方 在之间加入 /// ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 如果想用ajax进行访问 首先在web.config里进行设置 添加在 节点之下 这样就是可以通过url进行访问了 不然就会报错 后台。 [WebService(Namespace = "http://tempuri.org/")] [W... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 在做数据统计的时候,行转列,列转行是经常碰到的问题。case when方式太麻烦了,而且可扩展性不强,可以使用 PIVOT,UNPIVOT比较快速实现行转列,列转行,而且可扩展性强 一、行转列 1、测试数据准备 CREATE TABLE [StudentSc... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(3737) 评论(0) 推荐(0) 编辑
摘要: Location 对象包含有关当前 URL 的信息。 Location 对象是 Window 对象的一个部分,可通过 window.location 属性来访问。 hash 设置或返回从井号 (#) 开始的 URL(锚)。 host ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1-100 级帮派技能费用表 等级 银币 帮贡 等级 银币 帮贡 1 100 0 51 71668 33 2 180 0 52 76760 36 3 280 0 53 82116 39 4 440 0 5... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(4458) 评论(0) 推荐(0) 编辑
摘要: style="pointer-events: none;" 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 之前懒得写判断ie版本js,因为网上关于这方面的代码太多了,所以从网上拷贝了一个,放到项目上才发现由于时效性的问题,代码不生效。就自己写一个吧。 怎么去看浏览器的内核等信息 ---- js的全局对象window子属性navigator.userAgent,这个... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 最近做了一个响应式网站,主要用到了CSS3里的@media screen,今天无意用IE8打开发现网站竟然不正常,才知道原来IE8不兼容响应式@media screen呢。下面跟大家分享下青岛星网的解决方法。 我看了下IE6-IE8下加载网站,网站不能正常显示... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(222) 评论(0) 推荐(0) 编辑
摘要: public static string GetValue(string key)//读取指定节点 { XmlDocument doc = new XmlDocument(); string nodeV... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(25) 评论(0) 推荐(0) 编辑
摘要: $('input[type=number]').keypress(function(e) { if (!String.fromCharCode(e.keyCode).match(/[0-9\.]/)) { return false; } });... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(384) 评论(0) 推荐(0) 编辑
摘要: protected void Button3_Click(object sender, EventArgs e) { DataTable dt = null; string tempprovince =... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(179) 评论(0) 推荐(0) 编辑
摘要: downtime.js /*! * jQuery downtime plugin * version 0.2 * Author: Rob Griffiths http://github.com/bytespider/downtime * Licence:... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(94) 评论(0) 推荐(0) 编辑
摘要: art-template javascript 模板引擎,官网:https://github.com/aui/art-template 分为原生语法和简洁语法,本文主要是讲简洁语法 基础数据渲染输出HTML流程控制遍历调用自定义函数方法子模板引入基础数据渲染 ... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(68) 评论(0) 推荐(0) 编辑
摘要: public static string DateFormatToString(DateTime dt) { TimeSpan span = (DateTime.Now - dt).Duration(); if (span.T... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 判断两个时间段是否重叠,如: startdate1 — enddate1 startdate2 — enddate2 两个时间的重叠分4种情况,若你一一列出这四种情况来判断是否重叠那就弱爆了,最简单的方法: startdate1 =startdate2 若你无... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 第一种方法: function CompareDate(d1,d2){ return ((new Date(d1.replace(/-/g,"\/"))) > (new Date(d2.replace(/-/g,"\/"))));} var current_... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(447) 评论(0) 推荐(0) 编辑
摘要: $(function(){ //遍历获取的input元素对象数组,绑定click事件 var len = $("input[type='file']").length; for(var i = 0; i 元素开始找,等同于$("p span"... 阅读全文
posted @ 2022-03-23 08:45 离。 阅读(394) 评论(0) 推荐(0) 编辑
摘要: isChinese("中国人民");function isChinese(str) { var re = /[^\u4e00-\u9fa5]/; if (re.test(str)) return false; ... 阅读全文
posted @ 2022-03-23 08:44 离。 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 官方文档实在是太差劲了! 自己总结的,完整写一下 .NET开发调用钉钉接口时 TopSdk.dll。这个DLL要添加到引用,而且要最新版本,这是2022.01.26时的最新版本, 如再有更新,可去官网找下载,网址:https://open.dingtalk.c... 阅读全文
posted @ 2022-03-23 08:44 离。 阅读(423) 评论(0) 推荐(0) 编辑
摘要: protected void Button14_Click(object sender, EventArgs e) { string strfilepath = @"F:\a";//要循环的文件夹路径 ... 阅读全文
posted @ 2022-03-23 08:44 离。 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 直接在查询分析器中执行以下代码就行: 方法一 select name from sysobjects o, syscomments s where o.id = s.id and text like '%test%' and o.xtype = 'P' 方法... 阅读全文
posted @ 2022-03-23 08:44 离。 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页