开发者

javascript in silverlight xaml file

开发者 https://www.devze.com 2022-12-23 08:45 出处:网络
when I am trying to write javascript in xaml page itself it is showing some error. <script type=\"javascript\">

when I am trying to write javascript in xaml page itself it is showing some error.

<script type="javascript">
....
</script>

can we write javascript function for form validation in sil开发者_StackOverflow中文版verlight .xaml file ?


You cannot place a Script tag inside Xaml. However if you are simply rendering Xaml in the silverlight plugin you can wire up events that run javascript from a script block included in the HTML page that host the plugin. See this example.

0

精彩评论

暂无评论...
验证码 换一张
取 消