<script> var myValue = ...; </script> @(Html.DevExtreme().FileUploader() .DialogTrigger(new JS("myValue")) )