Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to declare global variables in Blazor

$
0
0

How to declare global variables in Blazor , for example I have inputquestions in Index I want to use this in another page called Quiz.https://github.com/KalyanAllam/MauiAppMCQs/

@page "/"<h1>  Quiz </h1>Select Input Questions and Click on  Quiz  .<div class="row"><p>Questions:</p><input type="range" min="5" max="20" step="5" @bind="@inputquestions"     @bind:event="oninput" /></div><p>@inputquestions</p>@code {    public  int inputquestions=5;}

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>