摘要: Blazor 遵循 ASP.NET Core 应用对于静态资产的约定。 静态资产位于项目的 web root (wwwroot) 文件夹中或是 wwwroot 文件夹下的文件夹中。 使用基相对路径 (/) 来引用静态资产的 Web 根。 在下面的示例中,logo.png 实际位于 {PROJECT 阅读全文
posted @ 2024-09-14 15:15 Biyuanguang 阅读(5) 评论(0) 推荐(0) 编辑
摘要: //生成语句 string aSql = $"Update SyetemConfigration set 值={Input.UserName} where 项目='当前用户'"; global.UpdateConfig(aSql); //函数 public bool UpdateConfig(str 阅读全文
posted @ 2024-09-03 13:59 Biyuanguang 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、在服务器端安装dotnet-hosting-8.0.6-win,很关键 2、在iis创建网站,端口可选80或8080 应用程序池NET CLR选无托管代码,注意64位的则要将“启用32位程序”改为false 3、启动时可能有错,可通过服务器事件查看器查找原因 例如缺少 builder.Servi 阅读全文
posted @ 2024-05-29 18:46 Biyuanguang 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //得到编号 using var _context = dbFactory.CreateDbContext(); var query = _context.ReportItems.FirstOrDefault(x => x.项目名称 == currItemName ); currItemNo = q 阅读全文
posted @ 2024-05-24 11:40 Biyuanguang 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 根据blazor server 自动生成的例子 @page "/fetchdata" <PageTitle>Weather forecast</PageTitle> @using BlazorApp5.Data@inject WeatherForecastService ForecastServic 阅读全文
posted @ 2024-03-29 16:44 Biyuanguang 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 采用javascript访问服务器上的文件,文件存在则打开文件,不存在返回不存在 控制器: [HttpPost]public ActionResult CheckFileExists(string aFile){ // 检查文件是否存在 string filePath = Server.MapPat 阅读全文
posted @ 2024-03-26 12:23 Biyuanguang 阅读(3) 评论(0) 推荐(0) 编辑
摘要: @using Microsoft.AspNetCore.Components.QuickGrid <PageTitle>Promotion Grid</PageTitle> <h1>Promotion Grid Example</h1> <QuickGrid Items="@people"> <Pr 阅读全文
posted @ 2024-03-03 10:46 Biyuanguang 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 法一: @using System.IO@inject IJSRuntime JS <PageTitle>File Download 1</PageTitle> <h1>File Download Example 1</h1> <button @onclick="DownloadFileFromSt 阅读全文
posted @ 2024-03-03 10:32 Biyuanguang 阅读(108) 评论(0) 推荐(0) 编辑
摘要: <h1>Event Handler Example 1</h1> <h2>@headingValue</h2> <p> <button @onclick="UpdateHeading"> Update heading </button></p> <p> <label> <input type="ch 阅读全文
posted @ 2024-03-03 10:29 Biyuanguang 阅读(60) 评论(0) 推荐(0) 编辑
摘要: <h1>Decimal Binding Example</h1> <p> <label> Decimal value (&plusmn;0.000 format): <input @bind="DecimalValue" /> </label></p> <p> <code>decimalValue< 阅读全文
posted @ 2024-03-03 10:22 Biyuanguang 阅读(9) 评论(0) 推荐(0) 编辑