Željko Perić

Željko Perić

  • 395
  • 3.8k
  • 221.8k

How to pass value of unknown type variable, to parameter in HTML page

Jun 22 2022 4:06 PM

Hello,

I am trying to write my own control in HTML.

This control has only one text field for showing value of variable passed from other HTML Pages. string, bool, int, decimal, float, double, ...

Is it possible to get value of variable if the type of variable is unknown.

Or how to declare [Parameter] if we do not know the type of variable that will be passed to Control.

in C# we simply do this :

var Parameter = Variable;

And then we can check what is the type of Variable.

But how to do that in HTML,  ASP.Net,  Blazor etc.. when we pass Variable from page to page.

All the best,

Željko Peric.

 


Answers (1)