Skip to content

Having asp.net razor for service side and Blazor on client side on the same views. #6387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
A51UK opened this issue Jan 4, 2019 · 2 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Comments

@A51UK
Copy link

A51UK commented Jan 4, 2019

The idea is that you could use asp.net razor on service side when making the view but use Blazor to do any change on the clients side, like how with use asp.net razor with JavaScript now. The reason for this is to allow the page to be sent with some data on load and then use Blazor for any update or change after the page been sent.

A example of this would be on a shopping site where the first 10 product would be sent on the page when sent to the user and next load of product would be load on the page by the use of Blazor and Web API. it would be good for SEO as google would be able to see the first 10 product without it need run any Blazor code. In order to do this there would be need a way to say with part of the code is for Blazor and with part for the service side (e.g. razor). This would also allow for a more easy upgrade route for non-Blazor website to be able to use Blazor.

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 4, 2019
@Andrzej-W
Copy link

Hopefully this problem will be resolved here #5464

@mkArtakMSFT
Copy link
Member

Thanks @Andrzej-W. We're closing this as a dupe.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

No branches or pull requests

4 participants