The Asp.net page calls Silverlight

Source: Internet
Author: User

It is not difficult to call Silverlight in Asp.net, just add a script in aspx to call xap.

For example:

(1) The system. Web. Silverlight. dll file cannot be found in sl3. Download it here and add it to the project reference.

 

(2) You must first register. Add the following statement to the header of the ASPX page on the Asp.net page:


<% @ Register Assembly = "system. Web. Silverlight" namespace = "system. Web. UI. silverlightcontrols" tagprefix = "asp" %>

(3) and then call

<Asp: scriptmanager id = "scriptmanager1" runat = "server"> </ASP: scriptmanager>
<Div style = "height: 100%;">
<Asp: Silverlight id = "firstapp" runat = "server" Source = "~ /Clientbin/firstsilverlight. xap "minimumversion =" 2.0.31005.0 "width =" 100% "Height =" 100% "/>
</Div>

 

(4) You can perform the test on your own.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.