随笔分类 -  .NET

摘要:集成微信退款的时候,出现了这样的一个错误。 需要修改IIS的应用程序池的高级配置中的一个值。 这个地方要改成True,好像不改是读不到支付的证书。 阅读全文
posted @ 2022-11-07 18:41 lear 阅读(331) 评论(0) 推荐(0) 编辑
摘要:场景 本机环境使用Visual studio独立开发两个项目,需要单点登录, 第一个vs项目的启动地址为 localhost:15900, 第二个vs项目的启动地址为 localhost:55888, 现在的需求,当用户在第一个项目登录之后,跳转到第二个项目,第二个项目不需要再次登录就可以获取到第一 阅读全文
posted @ 2021-07-29 11:54 lear 阅读(893) 评论(0) 推荐(0) 编辑
摘要:修改安装目录下的配置文件: redis.windows-service.conf 1.第56行的限制IP注释掉 2.修改最大使用内存:525行 3.修改连接密码:443行 4. 端口号设置:79行 阅读全文
posted @ 2021-01-29 14:37 lear 阅读(66) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/jiangyunfeng/p/10588258.html 我们将ASP.NET程序从IIS6移植到IIS7,可能运行提示以下错误: HTTP 错误 500.23 - Internal Server Error 检测到在集成的托管管道模式下不适用的 阅读全文
posted @ 2020-03-04 14:53 lear 阅读(511) 评论(0) 推荐(0) 编辑
摘要:此文章为记录自己的配置流程,其他人不通用 网站服务器:Windows server 2008 R2 (IIS6.1) + Asp.net 数据库服务器:Windows server 2008 R2 + SQL Server 2008 R2 1.解析域名到服务器,如:www.test.com 2.登录 阅读全文
posted @ 2018-05-21 18:01 lear 阅读(389) 评论(0) 推荐(0) 编辑
摘要:初级 1,在码云上去注册一个帐号(码云的私有库是免费的,安全性怎么样我不知道) 2,在码云上新建一个项目,把相关的开发人员加到这个项目里,会得到这个项目在码云上的远程仓库的地址。 3,打开vs2015软件,点击团队->管理连接 4,这时候会看到下面有一个本地Git存储库,在网上查资料的时候好象说vs 阅读全文
posted @ 2017-07-14 17:22 lear 阅读(13807) 评论(1) 推荐(0) 编辑
摘要:文章转自:http://blog.sina.com.cn/s/blog_568e66230100hy6a.htmlFCKEditor于2009年被更名为新一代的CKEditor和CKFinder,见http://ckeditor.com/。只是本来是一个的产品(FCKEditor)现在变成了两个(C... 阅读全文
posted @ 2014-04-17 17:17 lear 阅读(233) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-12-07 15:11 lear 编辑
摘要:转自:http://hi.baidu.com/zhou8237436/item/0dec8711fde74302b88a1a68第一部: 从如下地址中下载URLRewriter组件组件:官方下载地址:http://download.microsoft.com/download/0/4/6/0463611e-a3f9-490d-a08c-877a83b797cf/MSDNURLRewriting.msi第二部:在网站项目中添加URLRewriter程序集的引用。第三部:配置webconfig文件:1。在<configuration>与</configSections>节点 阅读全文
posted @ 2012-12-03 12:51 lear 阅读(255) 评论(0) 推荐(0) 编辑
摘要:前:<asp:DropDownList ID="Sort" runat="server"></asp:DropDownList>后:string sqlcmd = "select * from NewsSort order by Title";Sort.DataSource = Bangso.DBUtility.SQLHelper.ExecuteDataview(sqlcmd);Sort.DataTextField = "Title";Sort.DataValueField = " 阅读全文
posted @ 2012-11-14 10:26 lear 阅读(115) 评论(0) 推荐(0) 编辑
摘要:<connectionStrings> <add name="BookConection" connectionString="Data Source=(local);Initial Catalog=数据库名;Persist Security Info=True;User ID=登录名;Password=密码" providerName="System.Data.SqlClient" /> </connectionStrings>stringconnString=System.Web.Configu 阅读全文
posted @ 2012-09-25 10:16 lear 阅读(144) 评论(0) 推荐(0) 编辑
摘要:var foodmylist = Bangso.MethodUtility.FillEntity.GetListFromSqlcmd<Bangso.Module.FoodMy>(sqlcmd, param2); var s = (from un in foodmylist where un.Username == "xinux" select un).ToList() ; var s2 = from fm in foodmylist group fm by new { fm.Datetime, fm.Username } into g select new {l 阅读全文
posted @ 2012-09-12 17:14 lear 阅读(496) 评论(0) 推荐(0) 编辑
摘要:Regex re = new Regex("<a[^>]+href=[^>]+>[^<]*</a>");//这个可以过滤掉所有的超链接的内容Regex re = new Regex("<a.*?>|</a>");//过滤超链接中的<a ....>xxx</a>标签,标签中xxx内容保留 阅读全文
posted @ 2012-04-26 09:57 lear 阅读(985) 评论(1) 推荐(1) 编辑
摘要:<a href="http://www.baidu.com" onclick="alert('aa');return false;">gogog</a>.net cs文件的判断提示 if (recontent.Length < 10 || recontent.Length > 2000) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ok", "alert('内容长度应在10-2000字 阅读全文
posted @ 2012-04-25 14:25 lear 阅读(177) 评论(0) 推荐(0) 编辑
摘要:using System.Text.RegularExpressions;public static bool IsInt(string inString){ Regex regex = new Regex("^[0-9]*[1-9][0-9]*$"); return regex.IsMatch(inString.Trim());} 阅读全文
posted @ 2012-04-19 09:52 lear 阅读(256) 评论(0) 推荐(0) 编辑
摘要:String CleanInput(string strIn) { // Replace invalid characters with empty strings. // Replace all html tags return Regex.Replace(strIn, @"</?[^>]*>", ""); // Replace html tags div or span //return Regex.Replace(strIn, @"</?(div|span)[^>]*>", "&qu 阅读全文
posted @ 2012-03-12 09:28 lear 阅读(241) 评论(0) 推荐(0) 编辑
摘要:Shift+Alt+Enter: 切换全屏编辑 Ctrl+B,T / Ctrl+K,K: 切换书签开关 Ctrl+B,N / Ctrl+K,N: 移动到下一书签 Ctrl+B,P: 移动到上一书签 Ctrl+B,C: 清除全部标签 Ctrl+I: 渐进式搜索 Ctrl+Shift+I: 反向渐进式搜索 Ctrl+F: 查找 Ctrl+Shift+F: 在文件中查找 F3: 查找下一个 Shift+F3: 查找上一个 Ctrl+H: 替换 Ctrl+Shift+H: 在文件中替换 Alt+F12: 查找符号(列出所有查找结果) Ctrl+Shift+V: 剪贴板循环 Ctrl+左右箭头键... 阅读全文
posted @ 2012-03-08 11:16 lear 阅读(175) 评论(0) 推荐(0) 编辑
摘要:.net的网站,Viewstate视图状态的隐藏内容有时候会很长,影响到搜索引擎的收录问题,下面这段代码通过重写System.Web.UI.Page中的Render方法,来实现把ViewState调整到网站的底部。View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Web.UI;using System.Threading;using System.Text.RegularExpressions;using 阅读全文
posted @ 2012-03-01 21:05 lear 阅读(291) 评论(0) 推荐(0) 编辑
摘要:通过csdn中sp1234的帖子进行整理ViewstateMethod.csView Code using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Web.UI;using System.Threading;/// <summary>///ViewstateMethod 的摘要说明/// </summary>namespace Lear{ public class ViewstateMethod : Sy 阅读全文
posted @ 2012-02-29 23:44 lear 阅读(293) 评论(0) 推荐(0) 编辑
摘要:private string DateDiff(DateTime DateTime1, DateTime DateTime2) { string dateDiff = null; try { TimeSpan ts1 = new TimeSpan(DateTime1.Ticks); TimeSpan ts2 = new TimeSpan(DateTime2.Ticks); TimeSpan ts = ts1.Su... 阅读全文
posted @ 2011-10-11 18:13 lear 阅读(463) 评论(0) 推荐(0) 编辑

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