PDA

View Full Version : Silverlight and asp.net master page


wisemx
04-12-2008, 12:06 AM
Try placing your script manager inside the master Page like this:

[quote]

<%@ Master Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ajax Master Page Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>

<form id="form1" runat="server">
<div>
[b]<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
</CODE>

minnug
04-12-2008, 03:57 AM
Hi,

I have created a silverlight master page on asp.net 2.0. The master page has a silverlight plug in banner and a second silverlight pluin in the left sidebar. My content- content placeholder is the problem (It has no silverlight). It functions OK except in the case when I want to add and ajax scriptmanager. Now when I run the content page i get an error.

I have similar master page set up without silverlight and in this case the ajax script manager works ok.

Any Ideas?

Steve jhttp://community.discountasp.net/emoticons/shocked.gif

minnug
04-15-2008, 02:25 AM
This worked fine thanks for your help.





Stevej

wisemx
04-15-2008, 10:59 AM
Glad to help.
Note: I'll be adding some Expression, and Silverlight,Video tutorials here soon.
Salute,
Mark