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

Blazor Tutorial - Knowledge Base (KB)

English (en) Français (fr) Español (es) Italiano (it) Deutsch (de) русский (ru) 한국어 (ko) 日本語 (ja) 中文简体 (zh-CN) 中文繁體 (zh-TW)

44 results for: in tag: c#

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 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

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

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

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.

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

.Net Blazor benefits over Angular , React or other javascript framework

What is the main feature of Microsoft's .Net Blazor? Can we use it in place of React or Angular? Will Blazor provide all the tools which are provided in Angular or React?
asp.net-core blazor c#
asked by user9202791

add list of dynamic components in blazor

I just started to have a look in blazor (v0.3) and doing some test I wanted to add a list using blazor ...First I created a ...List<string>... to test a simple list in the same page ...<ul> @foreach (var item in listItems) { <li>@item</li>...
asp.net-core blazor c#
asked by TiGreX

Can ElementRef property be set to a javascript interop return value in Blazor?

I am tinkering with CodeMirror on a textarea element. I am using javascript interop to accomplish this and it works fine when applying the code mirror. However my intention is to return that codemirror element and store that in another elementref....Blazo...
asp.net-core blazor c#
asked by Grand Masta1

How to Use or Deal With Server-Side SDKs not Designed for Concurrency in ASP.NET Core 2.1 with Razor Pages

Update:... As per it's request, the following is a more clean explanation of what I am trying to achieve, and a description of the context in which I am working....Essentially, I am making a website using ASP.NET Core 2.1 with the Razor Pages framework, c...
asp.net-core blazor c#
asked by Alex Fanat

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

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

Setting form value to C# Variable

I have a basic entry form, I need to set the entryDate field to todays date automatically so that when the user hits submit, the database will autofill with todays date (As a string)...<input for="EntryDate" value=@entryDate class="form-control" bind="@at...
blazor c# razor
asked by Bluestreak22

How to install ASP.NET Core Blazor Language Services when not using VS 2017?

I am learning how to build a Blazor app from ...this tutorial.... The required tools are given as follows....Install the .NET Core 2.1 SDK (2.1.300-preview2-008533 or later)....Install Visual Studio 2017 (15.7 Preview 5 or later) with the ASP.NET and web...
blazor c# visual-studio-2017 visual-studio-extensions
asked by Only The Paranoid Survive

Page 1 of 3
  • 1
  • 2
  • 3
  • »

Prime Library

Performance

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

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...