随笔分类 -  c#

摘要:update dt_users set reg_time= (CONVERT(varchar(100), reg_time, 23)+' '+'13:00:00' ) where CONVERT(varchar(100), reg_time, 8)='01:00:00' 阅读全文
posted @ 2024-06-05 15:33 请叫我七哥 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1. JSON定义 全称“JavaScript Object Notation(JavaScript对象表示法)”,JSON 是存储和交换文本信息的语法。 举例: [ { "id": 2, "name": "星河爆破", "number": 999 }, { "id": 3, "name": "九星 阅读全文
posted @ 2024-05-21 20:18 请叫我七哥 阅读(457) 评论(0) 推荐(0) 编辑
摘要:之前说到了Ext.Net中GridPanel行取值的问题(Ext.Net开发_GridPanel行选中取值),涉及到checkBox操作时,要留个心眼注意下取值的区别!返回值是Json格式。 现在用到了Json,就想自己也整一个Josn帮助类。在线帮助的资料很多,在巨人的身上东凑西凑也凑一个用用。 阅读全文
posted @ 2024-05-21 19:42 请叫我七哥 阅读(103) 评论(0) 推荐(0) 编辑
摘要:Dictionary<string, object> dcic = JsonHelper.DataRowFromJSON(resultdepth); foreach (var depthkey in dcic.Keys) { if (depthkey.Contains("data")) { Dict 阅读全文
posted @ 2024-05-21 19:35 请叫我七哥 阅读(35) 评论(0) 推荐(0) 编辑
摘要:通过data-id='<%#Eval("id") %>' 绑定唯一id。 <ItemTemplate> <tr> <td style="padding:10px"> <div class="rule-multi-checkbox"> <label for="chkId"> <input type=" 阅读全文
posted @ 2024-05-19 08:16 请叫我七哥 阅读(40) 评论(0) 推荐(0) 编辑
摘要:<asp:Repeater ID="rptList" runat="server" onitemdatabound="rptList_ItemDataBound" > <HeaderTemplate> <table width="100%" border="0" cellspacing="0" ce 阅读全文
posted @ 2024-05-15 13:50 请叫我七哥 阅读(12) 评论(0) 推荐(0) 编辑
摘要:checkboxlist绑定数据方法 1.把数据绑定到CheckBoxList中 特别要注意加载顺序 protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { SqlConnection con = 阅读全文
posted @ 2024-05-13 19:53 请叫我七哥 阅读(83) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Syste 阅读全文
posted @ 2024-04-24 12:52 请叫我七哥 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/alibai/p/3553657.html 以年月为条件查询,select * from table where year(q_date)='2024' and month(kq_date)='02' 阅读全文
posted @ 2024-01-04 18:02 请叫我七哥 阅读(79) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Globalization; namespace DTcms.Common { /// <summar 阅读全文
posted @ 2023-06-06 21:00 请叫我七哥 阅读(134) 评论(0) 推荐(0) 编辑
摘要:一直纠结腾讯云发短信功能中这几个命名空间怎么调用的。 using TencentCloud.Common; using TencentCloud.Common.Profile; using TencentCloud.Sms.V20210111; using TencentCloud.Sms.V202 阅读全文
posted @ 2023-03-20 23:08 请叫我七哥 阅读(310) 评论(0) 推荐(0) 编辑
摘要:首先将模板文件spend_list.html放到模板文件夹 URL配置里 将需要在此页面传递的参数,在“添加表达式”中配置好 链接写法: 继承类名DTcms.Web.UI.Page.spend_list,在DTcms.Web.UI/Page下面添加类spend_list.cs 参数将会在此页面获得 阅读全文
posted @ 2019-07-27 20:06 请叫我七哥 阅读(711) 评论(0) 推荐(0) 编辑
摘要:1、首先必须获得Token CRMComm crm = new CRMComm(); string error = ""; string accToken = crm.GetAccessToken(out error); 2、向指定用户发送信息 Senparc.Weixin.MP.AdvancedA 阅读全文
posted @ 2019-07-03 20:51 请叫我七哥 阅读(802) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// @从视频文件截图,生成在视频文件所在文件夹 /// 在Web.Config 中需要两个前置配置项: /// 1.ffmpeg.exe文件的路径 /// <add key="ffmpeg" value="E:\ffmpeg\ffmpeg.exe" /> /// 2. 阅读全文
posted @ 2017-08-06 17:49 请叫我七哥 阅读(489) 评论(0) 推荐(0) 编辑
摘要:以html页面作为媒介,将返回的值传递到html中的控件,然后在webBrowser中用 阅读全文
posted @ 2016-03-17 13:59 请叫我七哥 阅读(11754) 评论(0) 推荐(0) 编辑
摘要:在项目类库中已经引用了相关了类库,生成解决方案也没问题,但是到了后置代码,通过using引用其他类库的时候,再生成解决方案或者生成单个类库,就会报“未能找到类型或命名空间“xxx"(是否缺少using指令或程序引用?)” 之类的错误,曾经在写asp.net的时候也碰到过1次,当时解决方法是重新建立一 阅读全文
posted @ 2016-03-10 15:56 请叫我七哥 阅读(1975) 评论(0) 推荐(0) 编辑
摘要:C#定时器和事件 System.Timers.Timer myTimer; private void Form1_Load(object sender, EventArgs e) { myTimer = new System.Timers.Timer(60000);//定时周期1分钟 myTimer 阅读全文
posted @ 2016-02-29 10:42 请叫我七哥 阅读(1127) 评论(0) 推荐(0) 编辑
摘要://创建一个委托,是为访问listbox控件服务的。 public delegate void UpdateTxt(string msg); //定义一个委托变量 public UpdateTxt updateTxt; //修改listbox值的方法。 public void UpdateTxtMe 阅读全文
posted @ 2016-02-26 14:21 请叫我七哥 阅读(622) 评论(0) 推荐(0) 编辑
摘要:JSON是专门为浏览器中的网页上运行的JavaScript代码而设计的一种数据格式。在网站应用中使用JSON的场景越来越多,本文介绍 ASP.NET中JSON的序列化和反序列化,主要对JSON的简单介绍,ASP.NET如何序列化和反序列化的处理,在序列化和反序列化对日期时间、集 合、字典的处理。 一 阅读全文
posted @ 2016-02-01 09:04 请叫我七哥 阅读(414) 评论(0) 推荐(0) 编辑
摘要:public static bool IsMobile() { var context = HttpContext.Current; if (context != null) { var request = context.R... 阅读全文
posted @ 2016-01-27 09:17 请叫我七哥 阅读(209) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示