# AllowHardCodedValue markup option does not seem to be applied for resource bindings

**URL:** <https://forum.dotvvm.com/t/allowhardcodedvalue-markup-option-does-not-seem-to-be-applied-for-resource-bindings/256>\
**Category:** Discussion in English\
**Created:** [September 8, 2024, 4:53pm UTC](https://forum.dotvvm.com/t/allowhardcodedvalue-markup-option-does-not-seem-to-be-applied-for-resource-bindings/256 "2024-09-08T16:53:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [September 8, 2024, 4:53pm UTC](https://forum.dotvvm.com/t/allowhardcodedvalue-markup-option-does-not-seem-to-be-applied-for-resource-bindings/256/1 "2024-09-08T16:53:49Z")

</div>

Please clarify me on how the `AllowHardCodedValue` option works  
 ![image](https://forum.dotvvm.com/uploads/default/original/1X/282e6910417b6340e1cb688dcb64f169a6e81ccd.png)  
([Control properties | DotVVM Documentation](https://www.dotvvm.com/docs/4.0/pages/concepts/control-development/control-properties#markupoptions-properties))

But if I have in my markup these two:  
 ![image](https://forum.dotvvm.com/uploads/default/original/1X/53350a87c960c82ff6b46288076933ba5d0e457e.png)

At runtime all is well. This happens regardless of placing the attribute on the `DotvvmProperty` or on the associated C# property.

 ![image](https://forum.dotvvm.com/uploads/default/original/1X/5ee307dc257ec3fa41e4385226ac2f50f39d3813.png)

![image](https://forum.dotvvm.com/uploads/default/original/1X/76c17284fdf9b4e2ae297c93a3d3e850b3b4db5d.png)

---

<div class="post-metadata">

**Author:** ![exyi](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/exyi/32/9_2.png) [@exyi](https://forum.dotvvm.com/u/exyi)\
**Post date:** [September 8, 2024, 6:54pm UTC](https://forum.dotvvm.com/t/allowhardcodedvalue-markup-option-does-not-seem-to-be-applied-for-resource-bindings/256/2 "2024-09-08T18:54:25Z")

</div>

It’s broken and allows resource bindings, but we can’t fix it as it would break too much code. I believe it should at least emit a now, it’s strange VS Extension doesn’t complain about it (I hope we have updated DotVVM in there in last 2 years)
