<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>弘帝企业智能建站系统交流平台-芜湖万网信息技术服务中心 - 后端编程</title>
    <link>http://wh.ac.cn/forum.php?mod=forumdisplay&amp;fid=75</link>
    <description>Latest 20 threads of 后端编程</description>
    <copyright>Copyright(C) 弘帝企业智能建站系统交流平台-芜湖万网信息技术服务中心</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 13 Apr 2026 15:50:19 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://wh.ac.cn/static/image/common/logo_88_31.gif</url>
      <title>弘帝企业智能建站系统交流平台-芜湖万网信息技术服务中心</title>
      <link>http://wh.ac.cn/</link>
    </image>
    <item>
      <title>【C#】获取url中的javascript.js中常量值window.pageData</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3178</link>
      <description><![CDATA[url=\&quot;https://aiqicha.baidu.com/company_detail_31910473188481\&quot;;
下面为：抓取url中的javascript函数中常量值window.pageData

private string Crawl()
{
    string url = req.Form[\&quot;url\&quot;];
    string htmlContent = Submit.GetHTML(url);

    HtmlDocumen ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Tue, 18 Jun 2024 14:18:10 +0000</pubDate>
    </item>
    <item>
      <title>【IIS】匿名身份验证 &lt;anonymousAuthentication&gt;</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3172</link>
      <description><![CDATA[摘自：https://learn.microsoft.com/zh-cn/iis/configuration/system.webserver/security/authentication/anonymousauthentication

using System;
using System.Text;
using Microsoft.Web.Administration;

internal static class Sample { 
   private static ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Tue, 05 Mar 2024 12:38:43 +0000</pubDate>
    </item>
    <item>
      <title>Microsoft.AspNetCore.SignalR的用法汇总</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3161</link>
      <description><![CDATA[public override async Task OnConnectedAsync()
{
    // 在这里可以处理客户端连接时的逻辑
    await base.OnConnectedAsync();

    // 连接建立时将连接ID添加到对应的房间列表中
    connectionId = Context.ConnectionId;

    if (connections.TryGetVa ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Sun, 24 Dec 2023 02:25:51 +0000</pubDate>
    </item>
    <item>
      <title>【C#】在 .NET Identity 中的用户表中添加新字段</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3159</link>
      <description><![CDATA[假定在HD_Users中添加新字段FullName。
注意如何将原AspNetUsers改成HD_Users，请查看【C#】修改 .NET Identity 中的表名和字段名
http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3156&amp;fromuid=1

这儿代码也重复了实现过程，在此基础上添加新字段。
public class  ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Tue, 12 Dec 2023 13:37:15 +0000</pubDate>
    </item>
    <item>
      <title>【C#】修改 .NET Identity 中的表名和字段名</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3156</link>
      <description><![CDATA[1、修改表名：
在使用 Entity Framework 进行数据库迁移时，默认的表名是通过 OnModelCreating 方法中的 Fluent API 进行配置的。您可以通过继承 IdentityDbContext 类，并重写 OnModelCreating 方法来修改表名。例如，假设要将用户表（AspNetUsers）改为改为 \&quot;MyUsers ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Sun, 10 Dec 2023 14:40:40 +0000</pubDate>
    </item>
    <item>
      <title>【C#】ASP.NET Core 中常用的 ASP 属性有以下几种</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3155</link>
      <description><![CDATA[在这个 HTML 元素中，您使用了一些 ASP.NET Core 的标签辅助程序来生成链接。
asp-area=\&quot;Identity\&quot;：这个属性指定了该链接所属的区域（area）。在 ASP.NET Core 中，区域是用来组织项目文件和功能的一种方式。在这里，链接被指定为属于名为 \&quot;Identity\&quot; 的区域，这意味 ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Fri, 08 Dec 2023 15:03:19 +0000</pubDate>
    </item>
    <item>
      <title>【NET6】实现PUT方法上传FORM多图片和多参数</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3149</link>
      <description><![CDATA[此功能在Hondy.Demo.Modules中实现，经测试验证通过，完美解决415错误，400错误，Failed to read the request form. Multipart body length limit 16384 exceeded.等错误提示。
[html]

    
        Title:
        
            
        
    
    
       ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Thu, 30 Nov 2023 07:33:04 +0000</pubDate>
    </item>
    <item>
      <title>【NET8】创建VS2022自带的用户登陆页面</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3141</link>
      <description><![CDATA[1、建立一个Net Core Web应用，取名Hondy.Chat，应用全空就可以了。
2、在解决方案资源管理器中，右键单击项目 &gt;“添加”&gt;“已搭建基架的新项”。在“添加已搭建基架的新项”对话框的左侧窗格中，选择 标识。 在中心窗格中选择 标识。 选择“添加”按钮，按默认点击+号 ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Fri, 10 Nov 2023 14:23:54 +0000</pubDate>
    </item>
    <item>
      <title>资源的使用两种方案</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3138</link>
      <description><![CDATA[第一种：Resources.Global.init;
第二种：
ResourceManager rm = new ResourceManager(\&quot;Hondy.Site.App_GlobalResources.Global\&quot;, typeof(Global).Assembly);
return rm.GetString(\&quot;init\&quot;);
注意事项：
这儿Resources是在命名空间根，实际资源文件在路径为Hondy.Si ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Sat, 04 Nov 2023 13:51:22 +0000</pubDate>
    </item>
    <item>
      <title>【C#】NET MAUI读取不同设备信息</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3136</link>
      <description><![CDATA[如何使用 .NET 多平台应用 UI (.NET MAUI) IDeviceInfo 接口来读取有关运行应用的设备的信息。

using Microsoft.Maui.Devices;

private string ReadDeviceInfo()
{
    System.Text.StringBuilder sb = new System.Text.StringBuilder();

    sb.AppendLine( ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Sat, 21 Oct 2023 01:21:56 +0000</pubDate>
    </item>
    <item>
      <title>C#获取不同平台机器的函数GetMachine()</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3135</link>
      <description><![CDATA[来源：C#获取不同平台机器的函数GetMachine()-今日头条 (toutiao.com)Windows 平台
using System.Management;public string GetMachine(){var mc = new ManagementClass(\&quot;Win32_ComputerSystemProduct\&quot;);var moc = mc.GetInstances();var machine = string.Empty;forea ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Tue, 17 Oct 2023 03:16:35 +0000</pubDate>
    </item>
    <item>
      <title>【NET】弘帝应用解决https向http传递参数的办法</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3134</link>
      <description><![CDATA[摘录：https://www.toutiao.com/article/7290514985053307444/

经过多次尝试，弘帝发现https向http网址POST发送参数时，会出现POST阻断错误，理由是浏览器安全机制，这给https在企业网站并不流行的当今，可带来了重大的开发痛苦。
经过多天的尝试和研发，在查找网络 ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Tue, 17 Oct 2023 01:36:23 +0000</pubDate>
    </item>
    <item>
      <title>错误笔记：在OleDb执行下Access ，程序不报错，但是Update也更新不成功的</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3133</link>
      <description><![CDATA[https://blog.51cto.com/whitewolfblog/834757

sql = @\&quot;UPDATE HD_Binds SET HD_From=@From,HD_To=@To,HD_RegIP=@IP,HD_Expire=@Expire,HD_Connect=1 WHERE HD_CompanyID=\&quot; + CompanyID + @\&quot; AND HD_Machine=@Machine AND HD_DEL=0\&quot;;
//sql= sql.Replace(\&quot;@From\&quot;,]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Sun, 15 Oct 2023 18:02:29 +0000</pubDate>
    </item>
    <item>
      <title>【VS2022】如果项目属性打出错的解决办法</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3121</link>
      <description><![CDATA[以下是提供思路，但不一定奏效，暂不清楚是否是正确，无先后顺序：
A）删除bin和obj，清除项目解决方案，重新生成。
B）工具-&gt;导入和导出设置-&gt;重置所有设置
C）生成-&gt;配置管理器，确保没有配置错误
D）解决方案管理器中，右击项目，编辑项目文件。如果找不到，右击 ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Wed, 23 Aug 2023 02:53:00 +0000</pubDate>
    </item>
    <item>
      <title>【C#】BaseOutputPath/OutputPath property is not set for project</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3120</link>
      <description><![CDATA[在生成项目时，出现以下错误
 The BaseOutputPath/OutputPath property is not set for project \'Your Project.csproj\'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration=\'D ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Wed, 23 Aug 2023 02:47:47 +0000</pubDate>
    </item>
    <item>
      <title>【C#】WebConfig给IIS添加字体支持woff/svg/ttf</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3119</link>
      <description><![CDATA[]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Tue, 22 Aug 2023 10:20:58 +0000</pubDate>
    </item>
    <item>
      <title>【C#】?与??的取值问题</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3118</link>
      <description><![CDATA[Request.Form[\&quot;key\&quot;]?.Replace(\&quot; \&quot;, \&quot;%\&quot;) ?? \&quot;\&quot;是什么意思？
Request.Form[\&quot;key\&quot;]?.Replace(\&quot; \&quot;, \&quot;%\&quot;) ?? \&quot;\&quot; 是一个用于处理表单数据的代码片段。在这里，Request.Form[\&quot;key\&quot;] 表示从表单中获取名为 \&quot;key\&quot; 的字段值。? 是一个空值条件运算符，它用于检查是否存在该字段 ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Fri, 18 Aug 2023 14:33:48 +0000</pubDate>
    </item>
    <item>
      <title>GBK编码网站，用AJAX POST向ASP传递中文参数</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3103</link>
      <description><![CDATA[1、在客户端使用 encodeURIComponent 方法对中文参数进行编码，保证其采用 UTF-8 编码传输。
2、然后在ASP中使用ClassCoding.UrlDecode_JS来转换成中文录入数据库
示例：
JS:hondycms--&gt;login-&gt;js-&gt;function.js
function getFormData($form) {
        var unindex ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Sun, 26 Mar 2023 10:06:58 +0000</pubDate>
    </item>
    <item>
      <title>C#除法时保留多位小数的方法</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3101</link>
      <description><![CDATA[示例1：格式化
Hondy.Site.Login.Template.Upload.Img.Add中
((double)UsedSpace / 1024000).ToString(\&quot;0.000\&quot;)
注意这儿必须注明double，才能保证正确的格式化，否则默认为整除，即123.000，而不是123.123。

示例2：Round方法
Hondy.Site.Login.Template.Upload ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Thu, 23 Mar 2023 01:23:48 +0000</pubDate>
    </item>
    <item>
      <title>编写获取文件名（全路径）子函数</title>
      <link>http://wh.ac.cn/forum.php?mod=viewthread&amp;tid=3091</link>
      <description><![CDATA[/////param
///path：文件夹路径
///suffix：后缀格式， 如bmp，txt
///fileList:文件名存放
///isSubcatalog:true遍历子文件夹，否则不遍历
void getFiles(string path, string suffix， ref List fileList， bool isSubcatalog)
{
　　string filename;
　　D ...]]></description>
      <category>后端编程</category>
      <author>admin</author>
      <pubDate>Mon, 28 Nov 2022 03:28:59 +0000</pubDate>
    </item>
  </channel>
</rss>