上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 自己项目名称:C****CodeTest->jqueryDatePickerController->Index 1.最简单基本的例子如下,前端: @{ ViewBag.Title = "Index"; Layout = null; } <link href="~/Content/jquery-ui. 阅读全文
posted @ 2022-04-28 16:29 katesharing 阅读(32) 评论(0) 推荐(0)
摘要: 1.代码: using System; using System.Web.Mvc; namespace CloudCodeTest.Controllers { public class TimeTestController : Controller { // GET: TimeTest public 阅读全文
posted @ 2022-04-26 18:06 katesharing 阅读(48) 评论(0) 推荐(0)
摘要: bool isSent=false try { } catch(Exception ex) { //write log throw ex; } finally { //不管上面是否有异常,这段都会执行 //write log } return isSent; 阅读全文
posted @ 2022-04-19 09:35 katesharing 阅读(42) 评论(0) 推荐(0)
摘要: 例子参照网址: https://blog.csdn.net/weixin_34185512/article/details/94654128 测试结果是:linq的执行效率基本上都要比用基础代码编写的foreach要慢一点。(跟上一篇一样的结论) 1.测试一代码如下: using System.Co 阅读全文
posted @ 2022-04-02 16:15 katesharing 阅读(182) 评论(0) 推荐(0)
摘要: 文章标题:Is Using LINQ in C# Bad for Performance? 时间:2020年7月13日 文章网址:https://medium.com/swlh/is-using-linq-in-c-bad-for-performance-318a1e71a732 个人从这篇文章学到 阅读全文
posted @ 2022-04-02 11:46 katesharing 阅读(214) 评论(1) 推荐(0)
摘要: https://datatables.net/examples/advanced_init/row_grouping.html 阅读全文
posted @ 2022-03-25 17:40 katesharing 阅读(90) 评论(0) 推荐(0)
摘要: 1.问题如下: 2.解决方法: 1)如果是.NET Framework MVC网站,右击项目,点击属性,把下面的地址从https改成http 2)如果是.NET CORE API,右击项目,点击属性-》调试,把启用SSL的复选框去除掉。 阅读全文
posted @ 2022-02-17 09:44 katesharing 阅读(4957) 评论(0) 推荐(0)
摘要: 法一,注意不能直接传stu会有问题,写法可以改成如下: 1.控制器 // GET: Student public ActionResult Index() { var stu = _stuService.GetStuName(122); //return View(stu); stu是字符串,这么写 阅读全文
posted @ 2022-02-16 18:13 katesharing 阅读(172) 评论(0) 推荐(0)
摘要: utctime=localTime+localOffset; timeOffset is in minutes 注意在C#中,ToLocalTime()?是不是根据服务器的时间,真正要换成客户的时间,只能用timezoneoffset吗? 客户端timezoneoffset的获取方法是: var o 阅读全文
posted @ 2022-02-11 16:56 katesharing 阅读(1714) 评论(0) 推荐(0)
摘要: 测试例子如下: 1.建立测试表: CREATE Table Library ( BookId int identity (1, 1), BookName varchar(100), Dept varchar(100), SubjectId int ); 2.插入数据: DECLARE @Dept v 阅读全文
posted @ 2022-02-09 15:28 katesharing 阅读(55) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页