导航

随笔分类 -  C#

摘要:VS 调试 显示 如下错误 解决办法: 1 打开调试运行中的 IIS Express 2 点击其中一条记录 3 点击配置 4 找到对应项目站点 。添加 <binding protocol="http" bindingInformation="*:11188:*" /> 阅读全文

posted @ 2022-02-16 23:30 yiyishuitian 阅读(1268) 评论(0) 推荐(0)

摘要:int pageSize = 500; int total = pageSize; DataTable _dt = new DataTable(); //循环调用 webservice 直至取完所有数据. for (int i = 1; i <= Math.Ceiling((double)(tota 阅读全文

posted @ 2020-10-28 21:15 yiyishuitian 阅读(1195) 评论(0) 推荐(0)

摘要:Request.UserAgent 与 Request.ServerVariables["HTTP_USER_AGENT"] 返回结果是一样的 阅读全文

posted @ 2019-12-10 17:53 yiyishuitian 阅读(261) 评论(0) 推荐(0)

摘要:引用命名空间 using System.Web.SessionState; 实现接口 IRequiresSessionState public class Handle : IHttpHandler,System.Web.SessionState.IRequiresSessionState 正常使用 Session["xxxx"] 阅读全文

posted @ 2019-12-04 10:56 yiyishuitian 阅读(171) 评论(0) 推荐(0)

摘要:在哪台机器上加密,哪能机器能直接识别加密后连接字符串。 1 2 加密 -pef 为加密 -pdf 为解密 connectionStrings: 为web.config 里需要加密的节。 E:\temp: 为web.config 所在文件夹 执行完此加密语句后,web.config文件就已经变成加密过 阅读全文

posted @ 2019-12-02 17:11 yiyishuitian 阅读(411) 评论(0) 推荐(0)

摘要:1 先安装 Visual Studio Installer -->已安装-->修改-->ASP.NET和Web开发(打上勾)-->安装详细信息-->其它项目版本(早期版本) 2 新建项目 阅读全文

posted @ 2019-11-28 17:08 yiyishuitian 阅读(5030) 评论(1) 推荐(1)

摘要:ashx 没有折叠 在打开网站式项目时,使用ashx 时只有一个文件 Handler.ashx 没有对应的.cs 文件。 这时代码在里面是不能进行折叠的。 混合编码的原因? 解决方法: ASHX does contain markup - there us a register directive 阅读全文

posted @ 2019-10-16 10:03 yiyishuitian 阅读(294) 评论(0) 推荐(0)

摘要:1 oracle 存储过程创建 阅读全文

posted @ 2019-09-28 23:55 yiyishuitian 阅读(240) 评论(0) 推荐(0)

摘要:针对开发和部署 1 引用 Oracle.ManagedDataAccess.dll 程序集 2 文件可以在以下路径找到(当然要先安装 Oracle Developer tools for visual studio了) 3 然后开发的电脑上和页面部署的电脑上都不需要安装 oracle 客户端,就可以 阅读全文

posted @ 2019-08-30 16:43 yiyishuitian 阅读(4587) 评论(0) 推荐(0)

摘要:1 安装 Oracle Developer Tools for Visual Studio https://www.oracle.com/database/technologies/developer-tools/visual-studio/ 2 vs2019-->工具-->连接到数据库 3 数据源 阅读全文

posted @ 2019-08-30 16:41 yiyishuitian 阅读(2620) 评论(0) 推荐(0)

摘要:1 使用VS以网站形式打开一个项目。 2 添加 web 窗体时,为vb语言。 解决方法 添加-->添加新项-->Visual C#-->WEB窗体 下次再添加时即默认为C#语言了。 阅读全文

posted @ 2019-08-29 13:52 yiyishuitian 阅读(428) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2019-08-29 12:24 yiyishuitian 阅读(1219) 评论(0) 推荐(1)

该文被密码保护。

posted @ 2019-08-05 08:59 yiyishuitian 阅读(2) 评论(0) 推荐(0)

摘要:转自:https://www.cnblogs.com/baojiao/p/9336857.html 阅读全文

posted @ 2019-08-02 16:12 yiyishuitian 阅读(187) 评论(0) 推荐(0)

摘要:1 store 中 OnReadData 设置 AutoLoad = true ,重要的一点是 要有一个代理.不然数据不显示 1 阅读全文

posted @ 2019-07-22 16:51 yiyishuitian 阅读(346) 评论(0) 推荐(0)

摘要:private void DownLoadAsZip(string folderName, string outFileName) { //取文件夹下文件,只取当前目录下文件,子文件不取 string[] files = Directory.GetFiles(folderName); int folderOffset = ... 阅读全文

posted @ 2019-07-18 11:22 yiyishuitian 阅读(823) 评论(0) 推荐(0)

摘要:1 DataTable 转为 Linq 可查询对象(LINQ 查询:SQL Server 数据库、XML 文档、ADO.NET 数据集以及支持 IEnumerable 或泛型 IEnumerable<T> 接口的任何对象集合。) 2 使用 Skip Take 进行分页 3 分页结果集IEnumera 阅读全文

posted @ 2019-06-13 10:59 yiyishuitian 阅读(403) 评论(0) 推荐(0)

摘要:DataTable dt_temp = new DataTable(); dt_temp.Columns.Add("id"); dt_temp.Columns.Add("name"); for (int i = 0; i < 10; i++) { DataRow dr = dt_temp.... 阅读全文

posted @ 2019-03-07 15:24 yiyishuitian 阅读(876) 评论(0) 推荐(0)

摘要:转自:https://www.cnblogs.com/fish-li/archive/2012/05/07/2486840.html 细说ASP.NET Windows身份认证 细说ASP.NET Windows身份认证 阅读目录 开始 认识ASP.NET Windows身份认证 访问 Active 阅读全文

posted @ 2018-11-19 10:32 yiyishuitian 阅读(180) 评论(0) 推荐(0)

摘要:web api 模拟用户 转:https://blog.csdn.net/vic0228/article/details/80649615 如果不加MSCRMCallerID这个头部,则请求数据时会报错,提示当前用户并没有读取该条数据的权限 当我们加上了MSCRMCallerID这个头部后再运行,发 阅读全文

posted @ 2018-11-19 10:25 yiyishuitian 阅读(207) 评论(0) 推荐(0)