Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Best way to give element custom properties in C# Webform

$
0
0
I have a generic html element like this@span v-bind:class="{ available: days.timeOne }" data-time="10:00" data-date="{{ days.date }}" class="home__visit-featured-days-item-buttons-time"@10:00@/span@ Which when it is being rendered, is having the vuejs tags being stripped. I have encountered this issue before when using basic html elements and even control tags like and my solution was to add them manually in the code behind. I don't like this method as not only is long and tedious, it ties back end logic to the view.Is there a attribute similar to ClientIDMode that I can use to stop these tags being stripped?Thanks

Viewing all articles
Browse latest Browse all 8901

Trending Articles