AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Documatation on conditional attributes is incomplete.

Open Neutrino-Sunset opened this issue 2 years ago • 2 comments

Description

https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-8.0#conditional-attribute-rendering

Conditional attribute rendering does not work for data atrtibutes, but there is no mention of this.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/views/razor.md

Document ID

a0b3b70a-3b39-1b5f-a4ce-c41bd2d6b044

Article author

@tdykstra

Neutrino-Sunset avatar Jun 21 '24 09:06 Neutrino-Sunset

@Neutrino-Sunset can you post a GitHub repo with the simplest possible app that demonstrates the problem and explain what you expect?

Rick-Anderson avatar Jun 24 '24 20:06 Rick-Anderson

See https://github.com/dotnet/aspnetcore/issues/60864 for a example and https://github.com/dotnet/razor/issues/8587 for some background info.

ChrisVanDijk avatar Jun 05 '25 09:06 ChrisVanDijk