Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a docType Parameter named "bottomRightContent" and would like to test if there is any content within it excluding the text "
Had to re-post, because the forum left out half my post and won't let me edit it.
Here is what is missing from my first post:
@if ( Model.HasValue("bottomRightContent.Where.Contains(\"<!-\")") ){ <div class="catBox"> <div class="catContent"> @Model.bottomRightContent </div> </div> }
I would like it to check the parameter to see if there is an HTML comment tag (<!--)
hey Steve
Is bottomRightContent a dynamic on your model or a string ?
if it is a string u can use
@if (Model.bottomRightContent.Contains("
seems like the comment html comment fucks up the post :)
if bottomRightContent is string property on your model u can do it like this
@if (Model.bottomRightContent.Contains("<|-- ")){ }
If bottomRightContent is just the alias of your property and u are referencing it dynamic try this
@if (Model.Content.GetPropertyValue<string>("bottomRightContent").Contains("<|--")){ }
I have replaced the ! with a | :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Contains()
I have a docType Parameter named "bottomRightContent" and would like to test if there is any content within it excluding the text "
Had to re-post, because the forum left out half my post and won't let me edit it.
Here is what is missing from my first post:
I would like it to check the parameter to see if there is an HTML comment tag (<!--)
hey Steve
Is bottomRightContent a dynamic on your model or a string ?
if it is a string u can use
@if (Model.bottomRightContent.Contains("
seems like the comment html comment fucks up the post :)
if bottomRightContent is string property on your model u can do it like this
If bottomRightContent is just the alias of your property and u are referencing it dynamic try this
I have replaced the ! with a | :)
is working on a reply...