Reputation: 9679
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 silverlight .xaml file ?
Upvotes: 2
Views: 2313
Reputation: 189457
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.
Upvotes: 1