03 2026 档案

摘要:在静态方法或没有 HttpContext 的地方会报错, // ❌ HttpContext 为 null string path = HttpContext.Current.Server.MapPath("~/"); 解决:使用 HostingEnvironment.MapPath string p 阅读全文
posted @ 2026-03-30 17:56 yinghualeihenmei 阅读(3) 评论(0) 推荐(0)
摘要:最后发现后面放了一个asp:TextBox控件,去掉后好了。 问题根源说明 ASP.NET WebForms 的服务器控件在渲染时: asp:TextBox → 渲染为 <input type="text"> asp:Button → 渲染为 <input type="submit"> 或 <but 阅读全文
posted @ 2026-03-20 10:15 yinghualeihenmei 阅读(4) 评论(0) 推荐(0)
摘要:右击-添加引用,将mysql.data.dll放进去就可以了 阅读全文
posted @ 2026-03-17 14:48 yinghualeihenmei 阅读(2) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-03-17 11:58 yinghualeihenmei 阅读(3) 评论(0) 推荐(0)
摘要:sql语句为空的原因,执行会报错 阅读全文
posted @ 2026-03-12 15:05 yinghualeihenmei 阅读(3) 评论(0) 推荐(0)
摘要:1、<p style="text-indent: 2em;">这个段落首行缩进2字符。</p>2、p在td里面时,直接给td设置大小是没有变化的,需要直接给p增加字体大小的属性 <td style="width: 16%; height: 200px; vertical-align: top; pa 阅读全文
posted @ 2026-03-11 14:57 yinghualeihenmei 阅读(6) 评论(0) 推荐(0)
摘要:原文链接: https://blog.csdn.net/asd497907957/article/details/120196222 1.编写接口 这里我选择的是 “ASP.NET Web应用程序(.NET Framework)”。 填写好项目名称、选择项目位置以及所使用的框架,这里我用的是“.NE 阅读全文
posted @ 2026-03-04 17:40 yinghualeihenmei 阅读(29) 评论(0) 推荐(0)
摘要:1、右键单击文件选择打开属性 2、然后在弹出来的窗口中点击打开“兼容性” 3、然后在弹出来的窗口中点击打勾“以管理员身份运行此程序”,回车确定 4、然后右键单击就出现以管理员身份运行了。 阅读全文
posted @ 2026-03-02 11:28 yinghualeihenmei 阅读(88) 评论(0) 推荐(0)