Skip to content
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

No code in Razor file #2

Closed
AClerbois opened this issue Sep 16, 2021 · 0 comments
Closed

No code in Razor file #2

AClerbois opened this issue Sep 16, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@AClerbois
Copy link
Collaborator

AClerbois commented Sep 16, 2021

Hi please find my first milestone,

Since we can have code for both a view in the razor file and an attached code-behind file.

From our experience, we have chosen not to use the @code element in files with the .razor extension.

C# code should be in the .razor.cs file provided for this purpose.

The only necessary exception is the using block

@dvoituron dvoituron added the enhancement New feature or request label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants