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

POST Form Data to Blazor razor component (application/x-www-form-urlencoded)

$
0
0

I just started learning Blazor so please be patient with me if the question is strange.

Is it possible to POST Data as content-type "application/x-www-form-urlencoded" to Blazor razor component so when the page is being opened in browser it will show the provided initial values by the caller? It works well when using querystring and calling razor component url with HTTP GET method and with help of navigationManager. In this case I am not able to change how the data will be sent. I need to be able to handle a HTTP POST call with content-type application/x-www-form-urlencoded and the body providing initial value as a key=value. Data shall be showing on screen when page is loaded. User should then be given some options on page and selecting by clicking buttons.

If this is not possible what would be the proper approach for this specific requirement, i.e. cannot change how data is being sent (must be HTTP POST with content-type application/x-www-form-urlencoded) and receiving application being Blazor.

Update: The Blazor app should preferably be server-side but can be changed to web assembly (client-side) if required.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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