Al Pascual


Geo RSS
Geo Twitter Timeline

Blogs I read

<July 2008>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

Adding a Silverlight User Control into a ASP.NET page

Got this question many times by email, instead of answering to each person, let me post it here, as well make sure to check the Silverlight forums for all you other Silverlight questions.

On the project, right click and click at the Link to Silverlight library, then do this manually

Add the binary on the web.config:

<add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls"
assembly="System.Web.Silverlight" />

Register the tag:

<%@ Register Assembly="System.Web.Silverlight"
Namespace="System.Web.UI.SilverlightControls"
   TagPrefix="asp" %>

Register the control

<div  style="height:100%;">
           <asp:Silverlight ID="Xaml1" runat="server"
Source="~/ClientBin/SilverlightApplication1.xap" Version="2.0"
Width="100%" Height="100%" />
       </div>

Let me know if that works for you.

Cheers

Al

Comments

php code and scripts » Blog Archive » Adding a Silverlight User Control into a ASP.NET page said:

Pingback from  php code and scripts  &raquo; Blog Archive   &raquo; Adding a Silverlight User Control into a ASP.NET page

# March 21, 2008 1:34 AM

Mark Wisecarver said:

Thanks Al, that's the way I prefer to handle it.
# March 21, 2008 8:10 AM

rascunho » Blog Archive » links for 2008-03-21 said:

Pingback from  rascunho  &raquo; Blog Archive   &raquo; links for 2008-03-21

# March 21, 2008 4:24 PM

Alex said:

Hi Al, I got a problem. I have no idea how to done this work "On the project, right click and click at the Link to Silverlight library"
# April 2, 2008 9:30 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code: