Click here to Skip to main content
16,004,678 members
Home / Discussions / ASP.NET
   

ASP.NET

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:39
cofounderChris Maunder12-Jul-09 22:39 
QuestionAdding class isolated style on blazor component Pin
coco24331-Aug-24 23:34
coco24331-Aug-24 23:34 
Hi,

I am trying to add a style class to a blazor component, with isolated style method and when I add the style class on the blazor component located in the index.razor file, the blazor component disapears.

I am doing that on a Webassembly Blazor project.

So:

I have followig files:
-Index.razor, where I want to display the razor component

@page "/"

<PageTitle>Index</PageTitle>

<h1>Hello, world!</h1>

<div class="displayStyle">
<DisplayComponent/>
</div>

Welcome to your new app.

<SurveyPrompt Title="How is Blazor working for you?" />



-DisplayComponent.razor, where the component is defined

<div>
<h3>DisplayComponent</h3>
<h6>how cool, it works</h6>
</div>



-DisplayComponent.razor.css where the style class is defined

.displayStyle{
    margin:7px;
}


So please help me understading and implement this concept of isolated style.
When I add class="displayStyle" on the display component in index.razor the content of the "DisplayComponent" disappear.
I keep testing but I can't manage implementing a class on a blazor component with isolating style metgod.

Give me some sugestions please. What I am missing?

Thank you.

modified 3-Sep-24 0:45am.

AnswerRe: Adding class isolated style on blazor component Pin
coco2434-Sep-24 10:09
coco2434-Sep-24 10:09 
QuestionCan't disable Windows Authentication? [SOLVED] Pin
Richard Andrew x6414-Aug-24 7:42
professionalRichard Andrew x6414-Aug-24 7:42 
AnswerRe: Can't disable Windows Authentication? Pin
Richard Deeming14-Aug-24 17:47
mveRichard Deeming14-Aug-24 17:47 
GeneralRe: Can't disable Windows Authentication? Pin
Richard Andrew x6415-Aug-24 2:14
professionalRichard Andrew x6415-Aug-24 2:14 
GeneralRe: Can't disable Windows Authentication? Pin
Richard Deeming15-Aug-24 3:32
mveRichard Deeming15-Aug-24 3:32 
QuestionApi call connection resets Pin
Fred283416-Jul-24 3:56
Fred283416-Jul-24 3:56 
AnswerRe: Api call connection resets Pin
Fred283419-Jul-24 1:14
Fred283419-Jul-24 1:14 
GeneralRe: Api call connection resets Pin
Nitin S9-Sep-24 2:07
Nitin S9-Sep-24 2:07 
QuestionDo ASP.net MVC5 apps require Full trust on IIS10? Pin
Jean Vallee8-Jul-24 4:40
Jean Vallee8-Jul-24 4:40 
AnswerRe: Do ASP.net MVC5 apps require Full trust on IIS10? Pin
Richard Deeming8-Jul-24 6:52
mveRichard Deeming8-Jul-24 6:52 
QuestionChange Code Access Security Level on Plesk Pin
Jean Vallee3-Jul-24 7:51
Jean Vallee3-Jul-24 7:51 
AnswerRe: Change Code Access Security Level on Plesk Pin
Richard Deeming3-Jul-24 21:20
mveRichard Deeming3-Jul-24 21:20 
AnswerRe: Change Code Access Security Level on Plesk Pin
Jean Vallee5-Jul-24 4:55
Jean Vallee5-Jul-24 4:55 
QuestionASP.NET Web Application Deploy on IIS problem : Image / Icon not display Pin
SHAHROL AZMI BIN AMZAT12-Jun-24 16:56
SHAHROL AZMI BIN AMZAT12-Jun-24 16:56 
AnswerRe: ASP.NET Web Application Deploy on IIS problem : Image / Icon not display Pin
Richard Deeming12-Jun-24 21:34
mveRichard Deeming12-Jun-24 21:34 
AnswerRe: ASP.NET Web Application Deploy on IIS problem : Image / Icon not display Pin
Dave Kreskowiak13-Jun-24 3:06
mveDave Kreskowiak13-Jun-24 3:06 
QuestionHow to point an application to a new DB server Pin
Richard Andrew x646-Jun-24 5:05
professionalRichard Andrew x646-Jun-24 5:05 
AnswerRe: How to point an application to a new DB server Pin
Ron Nicholson6-Jun-24 5:15
professionalRon Nicholson6-Jun-24 5:15 
GeneralRe: How to point an application to a new DB server Pin
Richard Andrew x646-Jun-24 5:19
professionalRichard Andrew x646-Jun-24 5:19 
QuestionHow C Programming Principles Shape C# .NET Development Pin
Member 162807866-Jun-24 3:53
Member 162807866-Jun-24 3:53 
AnswerRe: How C Programming Principles Shape C# .NET Development Pin
Dave Kreskowiak6-Jun-24 5:18
mveDave Kreskowiak6-Jun-24 5:18 
Questionassertion failed : unrecognized tag script Pin
Patil Anant9-Mar-24 2:07
Patil Anant9-Mar-24 2:07 
AnswerRe: assertion failed : unrecognized tag script Pin
Richard MacCutchan9-Mar-24 2:30
mveRichard MacCutchan9-Mar-24 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.