blazor

Blazor WebAssembly 3.2.0 Preview 4 如期发布

☆樱花仙子☆ 提交于 2020-04-18 19:47:08
ASP.NET团队如期3.16在官方博客发布了 Blazor WebAssembly 3.2.0 Preview 4: https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-preview-4-release-now-available/ ,同时在twitter上发了一条信息带上了下面这张图,这张图很形象的说明了Blazor Webassembly 正在进行最后的准备发射,按照开发计划,将在下周4.23 发布Blazor WebAssembly 3.2.0 Preview 5, 完成功能特性的开发,接下来就是5月初发布Blazor WebAssembly 3.2.0 RC了,将在5.19 的微软Build大会正式发射升空,进入使用C#进行前端开发旅程。 Blazor WebAssembly 3.2.0 Preview 4新增功能: 启动期间访问主机环境:在 WebAssemblyHostBuilder通过 IWebAssemblyHostEnvironment的 HostEnvironment 属性公开,在应用环境中的启动过程中区分(开发,分期,生产等)的细节。如果该应用程序托管在ASP.NET Core应用程序中,则该环境将反映ASP.NET Core环境,因此ASP.NET Core肯定是最佳开发环境

Blazor WebAssembly 3.2.0 Preview 4 如期发布

ⅰ亾dé卋堺 提交于 2020-04-18 14:43:49
ASP.NET团队如期3.16在官方博客发布了 Blazor WebAssembly 3.2.0 Preview 4: https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-preview-4-release-now-available/ ,同时在twitter上发了一条信息带上了下面这张图,这张图很形象的说明了Blazor Webassembly 正在进行最后的准备发射,按照开发计划,将在下周4.23 发布Blazor WebAssembly 3.2.0 Preview 5, 完成功能特性的开发,接下来就是5月初发布Blazor WebAssembly 3.2.0 RC了,将在5.19 的微软Build大会正式发射升空,进入使用C#进行前端开发旅程。 Blazor WebAssembly 3.2.0 Preview 4新增功能: 启动期间访问主机环境:在 WebAssemblyHostBuilder通过 IWebAssemblyHostEnvironment的 HostEnvironment 属性公开,在应用环境中的启动过程中区分(开发,分期,生产等)的细节。如果该应用程序托管在ASP.NET Core应用程序中,则该环境将反映ASP.NET Core环境,因此ASP.NET Core肯定是最佳开发环境

Blazor WebAssembly 3.2.0 Preview 4 如期发布

岁酱吖の 提交于 2020-04-18 12:19:44
ASP.NET团队如期3.16在官方博客发布了 Blazor WebAssembly 3.2.0 Preview 4: https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-preview-4-release-now-available/ ,同时在twitter上发了一条信息带上了下面这张图,这张图很形象的说明了Blazor Webassembly 正在进行最后的准备发射,按照开发计划,将在下周4.23 发布Blazor WebAssembly 3.2.0 Preview 5, 完成功能特性的开发,接下来就是5月初发布Blazor WebAssembly 3.2.0 RC了,将在5.19 的微软Build大会正式发射升空,进入使用C#进行前端开发旅程。 Blazor WebAssembly 3.2.0 Preview 4新增功能: 启动期间访问主机环境:在 WebAssemblyHostBuilder通过 IWebAssemblyHostEnvironment的 HostEnvironment 属性公开,在应用环境中的启动过程中区分(开发,分期,生产等)的细节。如果该应用程序托管在ASP.NET Core应用程序中,则该环境将反映ASP.NET Core环境,因此ASP.NET Core肯定是最佳开发环境

Blazor server side projects no longer log in

只愿长相守 提交于 2020-04-17 21:14:54
问题 I have a number of Blazor test projects all of which were working correctly until a few days ago. Now none of them will login and give the following error: This site can’t be reached The web page at https://localhost:44373/Identity/Account/Login might be temporarily down or it may have moved permanently to a new web address. ERR_HTTP2_PROTOCOL_ERROR Visual studio throws no error and there is no error in the browser console. (Tested on Edge, Chrome, Opera & Firefox) I have subsequently created

Blazor server side projects no longer log in

老子叫甜甜 提交于 2020-04-17 21:13:01
问题 I have a number of Blazor test projects all of which were working correctly until a few days ago. Now none of them will login and give the following error: This site can’t be reached The web page at https://localhost:44373/Identity/Account/Login might be temporarily down or it may have moved permanently to a new web address. ERR_HTTP2_PROTOCOL_ERROR Visual studio throws no error and there is no error in the browser console. (Tested on Edge, Chrome, Opera & Firefox) I have subsequently created

c# blazor how to pass a List to a page

99封情书 提交于 2020-04-17 20:37:11
问题 I have a second page that receives the following parameter: @page "/newrecord/{Employees}" @inject HttpClient http <h1>@Employees.Count</h1> @code { [Parameter] public List<Model.Employees> Employees{ get; set; } } On my main page Im passing the list when clicking a button like this: List<Model.Employees> selected { get; set; } private void OnAddRecord() { NavigationManager.NavigateTo($"newrecord/{this.selected}"); } When the button is clicked I get an error and I can see the URL is being

Changing an Input value in Blazor by javascript doesn't change it's binded property value

笑着哭i 提交于 2020-04-16 03:38:25
问题 I'm building a website using app.net core 3.1 with blazor . In one of my components I have : <input @bind="Message" type="text" id="input-message"/> Message is just a string property. and I have javascript: document.getElementById('input-message').value = 'some text'; The problem is after running the above js, <input> value changes but Message value doesn't, and of course if I type or paste something inside <input> , Message value changes too. 回答1: You shouldn't change the input value

Blazor Server: load js scripts only on certain pages, not on all

我怕爱的太早我们不能终老 提交于 2020-04-16 03:37:21
问题 It is recommended to load JS libraries in the _Host.cshtml and not in the layout (nor in component where is not allowed) But doing so, how is it possible to load some script for one page and some for another ? eg. I want the googlemaps stuff or the datatable stuff only in the pages where I use them, not in all (waste of space/memory/load times). Thanks 回答1: As discussed in the comments, Blazor is an SPA so any loaded script is available on Blazor pages since it's the same page. However, you

Blazor Server: load js scripts only on certain pages, not on all

China☆狼群 提交于 2020-04-16 03:37:07
问题 It is recommended to load JS libraries in the _Host.cshtml and not in the layout (nor in component where is not allowed) But doing so, how is it possible to load some script for one page and some for another ? eg. I want the googlemaps stuff or the datatable stuff only in the pages where I use them, not in all (waste of space/memory/load times). Thanks 回答1: As discussed in the comments, Blazor is an SPA so any loaded script is available on Blazor pages since it's the same page. However, you

Notify all clients of added student and update ui

风格不统一 提交于 2020-04-16 02:27:14
问题 I have a blazor web assembly project and a signal r service project I would like to invoke the changes to the ui when I add a student. Currently I have to refesh the page to see the addition. StudentService.cs public class StudentService { public HubConnection connection; public StudentServicen() { connection = new HubConnectionBuilder() .WithUrl(".../StudentsHub") .Build(); connection.StartAsync(); } public async Task<List<Students>> GetAllStudents() => await connection.InvokeAsync<List