zzz projects Blazor Tutorial
Getting Started Knowledge Base
  • Getting Started
  • Knowledge Base

Blazor Tutorial - Knowledge Base (KB)

81 results

.NET Blazor Build error

I have tried to run the out of the box Blazor application to try out C# WebAssembly. I am running into issues when trying to run it different ways. I have also tried to hack the ...runtimeconfig.json... according to this ...https://github.com/dotnet/cli...
asp.net-core blazor
asked by bdparrish

Blazor vs Razor

With the invention of Blazor, I'm wondering if there are significant efficiencies (both in creation of code and in the actual compilation / execution of code) between these two languages?...https://github.com/SteveSanderson/Blazor...If anyone has actually...
asp.net-core blazor c# razor
asked by benpage

How Blazor Framework get notifed when the property value gets changed

When we have a HTML code like below....<h1>@Title</h1> ...and C# like below...public string Title { get; set; } ...Think i have executed a code like below...Title = "New title updated in the runtime"; ...Then we see that the view has chenged with the new ...
asp.net-core blazor c#
asked by VibeeshanRC

How to use TagHelpers in Blazor?

I created a tag helper and wanted to use that in my Blazor sample project. However, when I want to use the tag helper, the compiler complains about that:...CS0103 The name 'StartTagHelperWritingScope' does not exist in the current context FirstBlazorApp..
asp.net-core asp.net-core-tag-helpers blazor c#
asked by Sebastian P.R. Gingter

How to do client-side UI events in Blazor

I just started playing around with Blazor and I can already see the great potential of this new framework....I'm wondering, though, how it will handle doing simple things like setting focus on an input control? For instance, after I handle a click event, ...
asp.net-core blazor c# javascript javascript-interop
asked by camainc

Binding the value of a HTML element to a C# property in Blazor

In the blazor application that I am building, I have the following cshtml code which containts a ...<input>... element for the user to enter their name. I want to be able to bind the value of the input element to the Name property in the c# functions sect...
asp.net-core blazor c#
asked by SteelToe

Auto inject javascript in blazor application

I'm developing a Blazor extension library....One thing in this library would be the reuse of the javascript ...alert()... method. I know how to do this, this involves adding this in a .cshtml page:...<script> Blazor.registerFunction('Alert', (message) =...
asp.net-core blazor c#
asked by Flores

How to Create a Modular Blazor Web App

I am currently using ExtCore to build a modular API and I want to make the Blazor SPA application Modular too. ...I want to have a core Blazor project which imports the .cshtml files from other projects so that I have a single project per section of the S...
asp.net-core blazor c#
asked by Jon Ryan

How can I access the browsers localStorage in Blazor?

I want to support JWTs, so I need to keep the token around; is there some facility to access this? Or should we just be registering our own javascript function to access this functionality for now?...Edit: per advice, I attempted to use JS interop as :...
asp.net-core blazor c#
asked by Rollie

What causes if/else expressions to be re-evaluated?

Working off the Blazor hosted template, in my MainLayout.cshtml, I have something like:...@inject UserInfo userInfo @if(userInfo.Name == "bob") { <div class="login-panel"> <p>Hi Bob!</p> </div> } else { <LoginPanel /> } ...and then in ...
asp.net-core blazor c#
asked by Rollie

How can 'onblur' and similar events be supported?

I want to do something like:...<td contenteditable=true @onblur(async (txt) => { ... })> ...but currently it seems only ...@onchange... is supported, and doesn't actually fire when ...contenteditable... content is changed. I suppose the method would be to...
asp.net-core blazor c#
asked by Rollie

Class not updated in g.i.cs file

I have this class...public class Questionnaire { public List<Question> Questions { get; set; } public Question this[int i] { get { return Questions[i]; } } } ...And I'm trying to use it on my page with...Questionnaire questionnair...
asp.net-core blazor c#
asked by Bassie

Blazor onchange event with select dropdown

So i have been stuck trying to get a simple onchange to fire when a select dropdown value changes. Like so:...<select class="form-control d-flex" onchange="(dostuff())"> @foreach (var template in templatestate.templates) { <option value=@t...
asp.net-core blazor c#
asked by Grand Masta1

Can I use an Autorest client in blazor

I am getting a ...System.PlatformNotSupportedException... from the mono platform when trying to run my blazor app on webassembly. I autogenerated a web api client using Autorest. Everything is compiling fine but when I load the code in the browser I get t...
asp.net-core autorest blazor c# mono
asked by Nikolaj

How can I get a worker thread to execute a callback on the main UI thread?

I want to execute a number of tasks in parallel, once complete I want to execute a callback on the main UI thread. Is this possible? If so, how?
asp.net-core blazor c#
asked by Peter Morris

Get current Url in a Blazor component

I need to know the url of the current page in order to check if I have to apply certain style to a element. The code below is an example....@using Microsoft.AspNetCore.Blazor.Services @inject IUriHelper UriHelper @implements IDisposable <h1>@url</h1> <na...
asp.net-core blazor c#
asked by Carlos L.

Run FlightFinder Blazor on macOS

I'm so excited to start to use Blazor and I've just started to play with it. I'm using a Mac and I need to use terminal to create new projects. I've already made the TODO List as described on documentation: ...https://blazor.net/docs/tutorials/build-your-...
asp.net-core blazor macos
asked by Sérgio Damasceno

Blazor - How to create Components dynamically

I want to test if it was possible to create Blazor components dynamically....I can't find any way to do this. I have experimented a bit with some dynamic content found on ...this link... but have not ended up with any results.
asp.net-core blazor c#
asked by Diemauerdk

Add/load components dynamically

Good Blazor people, I need your help....Today when adding components to a page, you normally do something like this:...@page "/somepage" <MyComponent></MyComponent> ...What I want to do is to add the components dynamically, something like this:...@page "...
asp.net-core blazor c#
asked by gorhal

VS Code CSC : error CS1617: Invalid option '7.3' for /langversion

I downloaded VS 2017 15.7, .NET Core 2.1.2 and Blazor to try it out. It wasn't working in VS 2017 properly and thought I would try through the dotnet cli and VS Code. Instead I was met with the following error:...CSC : error CS1617: Invalid option '7.3' ...
asp.net-core blazor c# c#-7.3 visual-studio-code
asked by Spydernaz

Page 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • ยป

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!