CSharp – Neohope的网络笔记 https://www.neohope.com Learn and share. Wed, 16 Oct 2024 08:25:04 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 ASP.Net检测到有潜在危险的Request.Form值 https://www.neohope.com/2016/10/20/asp-net%e6%a3%80%e6%b5%8b%e5%88%b0%e6%9c%89%e6%bd%9c%e5%9c%a8%e5%8d%b1%e9%99%a9%e7%9a%84request-form%e5%80%bc/ https://www.neohope.com/2016/10/20/asp-net%e6%a3%80%e6%b5%8b%e5%88%b0%e6%9c%89%e6%bd%9c%e5%9c%a8%e5%8d%b1%e9%99%a9%e7%9a%84request-form%e5%80%bc/#respond Thu, 20 Oct 2016 06:03:31 +0000 http://www.neohope.com/?p=2752 https://www.neohope.com/2016/10/20/asp-net%e6%a3%80%e6%b5%8b%e5%88%b0%e6%9c%89%e6%bd%9c%e5%9c%a8%e5%8d%b1%e9%99%a9%e7%9a%84request-form%e5%80%bc/feed/ 0 COM+简单示例(05) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/#respond Sun, 12 Jun 2016 13:45:59 +0000 http://www.neohope.com/?p=2671 https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/feed/ 0 COM+简单示例(02) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/#respond Sun, 12 Jun 2016 08:57:12 +0000 http://www.neohope.com/?p=2660 Application->Assembly Infomation->Make Assembly COM-Visible->打勾 6、项目属性->Signing->Sign the assembly->打勾 项目属性->Signing->Choose a strong name key file->New 7、编译 8、注册 9、反注册 10、查看注册结果(COM+)]]> https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/feed/ 0 DCOM简单示例(05) https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/ https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/#respond Sat, 11 Jun 2016 14:49:13 +0000 http://www.neohope.com/?p=2648 https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/feed/ 0 DCOM简单示例(02) https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/ https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/#respond Sat, 11 Jun 2016 12:36:38 +0000 http://www.neohope.com/?p=2639 ATL Project(名称为ATLService)->类型选择Service(EXE)->Finish 2、工程视图,ATLService工程,右键->Add->Class->ATL->ATL Simple Object->类名为JustATestSvr,ProgID为ATLService.JustATestSvr 3、切换到类视图,ATLService项目下的IJustATestSvr接口上右键Add Method 名称:Add 参数1:[in]LONG a 参数2:[in]LONG b 参数3:[out,retval]LONG* c 4、类视图,ATLService项目下的IIJustATestSvr接口上右键Add Method 名称:SayHiTo 参数1:[in]BSTR someOne 参数2:[out,retval]BSTR* retValue 5、打开IJustATestSvr.cpp完成两个函数 6、编辑JustATestSvc.rgs,在TypeLib一行前,增加这样一行 这是MS的一个大bug,浪费了我好几个小时。 7、编译 8、注册 9、运行 10、停止 11、反注册]]> https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/feed/ 0 微软MVC实现REST风格编程 https://www.neohope.com/2016/05/17/%e5%be%ae%e8%bd%afmvc%e5%ae%9e%e7%8e%b0rest%e9%a3%8e%e6%a0%bc%e7%bc%96%e7%a8%8b/ https://www.neohope.com/2016/05/17/%e5%be%ae%e8%bd%afmvc%e5%ae%9e%e7%8e%b0rest%e9%a3%8e%e6%a0%bc%e7%bc%96%e7%a8%8b/#respond Tue, 17 May 2016 07:55:48 +0000 http://www.neohope.com/?p=2617 https://www.neohope.com/2016/05/17/%e5%be%ae%e8%bd%afmvc%e5%ae%9e%e7%8e%b0rest%e9%a3%8e%e6%a0%bc%e7%bc%96%e7%a8%8b/feed/ 0 WCF自托管服务 https://www.neohope.com/2016/05/13/wcf%e8%87%aa%e6%89%98%e7%ae%a1%e6%9c%8d%e5%8a%a1/ https://www.neohope.com/2016/05/13/wcf%e8%87%aa%e6%89%98%e7%ae%a1%e6%9c%8d%e5%8a%a1/#respond Fri, 13 May 2016 13:59:28 +0000 http://www.neohope.com/?p=2612 https://www.neohope.com/2016/05/13/wcf%e8%87%aa%e6%89%98%e7%ae%a1%e6%9c%8d%e5%8a%a1/feed/ 0 WCF修改SOAP命名空间 https://www.neohope.com/2016/05/10/wcf%e4%bf%ae%e6%94%b9soap%e5%91%bd%e5%90%8d%e7%a9%ba%e9%97%b4/ https://www.neohope.com/2016/05/10/wcf%e4%bf%ae%e6%94%b9soap%e5%91%bd%e5%90%8d%e7%a9%ba%e9%97%b4/#respond Tue, 10 May 2016 14:20:57 +0000 http://www.neohope.com/?p=2607 https://www.neohope.com/2016/05/10/wcf%e4%bf%ae%e6%94%b9soap%e5%91%bd%e5%90%8d%e7%a9%ba%e9%97%b4/feed/ 0 WCF实现REST风格编程 https://www.neohope.com/2016/05/10/wcf%e5%ae%9e%e7%8e%b0rest%e9%a3%8e%e6%a0%bc%e7%bc%96%e7%a8%8b/ https://www.neohope.com/2016/05/10/wcf%e5%ae%9e%e7%8e%b0rest%e9%a3%8e%e6%a0%bc%e7%bc%96%e7%a8%8b/#respond Tue, 10 May 2016 09:57:22 +0000 http://www.neohope.com/?p=2603 https://www.neohope.com/2016/05/10/wcf%e5%ae%9e%e7%8e%b0rest%e9%a3%8e%e6%a0%bc%e7%bc%96%e7%a8%8b/feed/ 0 Spring通过注解加载Bean的基本原理浅析(C#版) https://www.neohope.com/2016/03/11/spring%e9%80%9a%e8%bf%87%e6%b3%a8%e8%a7%a3%e5%8a%a0%e8%bd%bdbean%e7%9a%84%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86%e6%b5%85%e6%9e%90%ef%bc%88c%e7%89%88%ef%bc%89/ https://www.neohope.com/2016/03/11/spring%e9%80%9a%e8%bf%87%e6%b3%a8%e8%a7%a3%e5%8a%a0%e8%bd%bdbean%e7%9a%84%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86%e6%b5%85%e6%9e%90%ef%bc%88c%e7%89%88%ef%bc%89/#respond Fri, 11 Mar 2016 05:36:30 +0000 http://www.neohope.com/?p=2276 https://www.neohope.com/2016/03/11/spring%e9%80%9a%e8%bf%87%e6%b3%a8%e8%a7%a3%e5%8a%a0%e8%bd%bdbean%e7%9a%84%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86%e6%b5%85%e6%9e%90%ef%bc%88c%e7%89%88%ef%bc%89/feed/ 0