ill try agains sinc the entire post is fucked hope you find it :)
//if bottomRightContent is a property and u are referencing it dynamicly
@if (Model.Content.GetPropertyValue<string>("bottomRightContent").Contains("<|--"))
{
}
//if bottomrightContent is a string property on your model use this
@if (Model.bottomRightContent.Contains("<|--"))
{
}
Contains() solution for steve
ill try agains sinc the entire post is fucked hope you find it :)
I have replaced ! with |
Thanks Troels,
I've tried your code, but as soon as I change the "|" into the "!" it hides the script.
does it it hide your ode in the cshtml file or here at the forum ?
It hides it in the cshtml file.
glad u got it fixed mate
Got it!! I had to change the thing I was looking for slightly and go with the ending tag for the comment in the test.
Thanks Troels for getting me on the right track!
is working on a reply...