سؤال

i am using jQuery templates with C# and i have the following code

 <input type="button" value="View" class="btn btn-success" onclick="ShowDocument("'" + ${DoURL} + "'");" />

i want to pass value into the ShowDocument function but the above syntax does not work.

can someone please let me know what the correct syntax should be?

i have tried combinations such as d.DoURL and just DoURL, but nothing works.

any ideas?

هل كانت مفيدة؟

المحلول

try

onclick="ShowDocument('${DoURL}');"
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top