Saturday, September 12, 2009

Silverligt 3 ComponetOne ASP.NET 2.0 Integration

Silverlight 3 requires user-initiation for opening file dialogs operations
User-initiated operations in Silverlight by Ashish Shetty On Saturday, May 09, 2009

Silverlight 3 will not honor user-initiated operations that start from an HTML element, have a JavaScript handler which calls into a Silverlight scriptable API or other such endpoint.

Which means a completely natural integration of a Muliple File or File Part upload tool such as ComponentOne's Silverlight Uploader into a click event on an existing ASP.NET 2.0 web application to meet user requirements will require rethinking, rewriting and probably more steps for the user than the stakeholder wants the user to take, unless I pull together a credible workaround that does not require knowledge and/or action on the part of the user.

So currently a user clicks an ASP.NET 2.0 Web Application Page GridView Record Button which should launch Silverlight 3.0 ComponentOne Silverlight Uploader process which would open one or many files, load and catalog them. Of course, this throws the "User-Initiated" SecurityException.
If however you click a button in the embedded silverlight panel the process works and the presentation works.
The original design was ten upload inputs with an associated drop down list to pick the associated transcript header record (GridView Record) waiting at the bottom of the page.
It appears I'll have to keep that design, with a dropdown list and button within the Silverlight panel and do the presentation by transcript header record.
It still seems chunky - unclean - to me.

No comments: