silverlight does not apper in my master and content page.
i installed vs 2008, sl2 beta 2 , xpression blend 2.5 june 2008 preview works fine, made "hello world" project i've learned in "winvideo-sl-gettingstarted.wmv" video tutorial.
i run firstsilverlighttestpage.aspx , works fine.
here's code:
<%@ page language="vb" autoeventwireup="true" %>
<%@ register assembly="system.web.silverlight" namespace="system.web.ui.silverlightcontrols"
tagprefix="asp" %>
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%;">
<head runat="server">
<title>test page myfirstsilverlight (felix)</title>
</head>
<body style="height:100%;margin:0;">
<form id="form1" runat="server" style="height:100%;">
<asp:scriptmanager id="scriptmanager1" runat="server"></asp:scriptmanager>
<div style="height:100%;">
<asp:silverlight id="xaml1"
runat="server"
source="~/clientbin/myfirstsilverlight.xap"
minimumversion="2.0.30523"
width="100%"
height="100%" />
</div>
</form>
</body>
</html>
but when run default.aspx silverlight not appear
here's code:
<%@ page language="vb" masterpagefile="~/rolmaster.master" autoeventwireup="false" codefile="default.aspx.vb" inherits="webform_default" title="home page" %>
<%@ register assembly="system.web.silverlight" namespace="system.web.ui.silverlightcontrols"
tagprefix="asp" %>
<asp:content id="content1" contentplaceholderid="head" runat="server">
</asp:content>
<asp:content id="content2" contentplaceholderid="contentplaceholder1" runat="server">
<p>welcome content page</p>
<asp:scriptmanager id="scriptmanager1" runat="server"></asp:scriptmanager>
<asp:silverlight id="xaml1"
runat="server"
source="~/clientbin/myfirstsilverlight.xap"
minimumversion="2.0.30523"
width="100%"
height="100%" />
</asp:content>
hi allen reply, fixed problem installing vs2008 sp1
Silverlight > Silverlight Installation and Setup
Comments
Post a Comment