在jquery.html()中使用application / x-silverlight

时间:2012-10-23 18:34:58

标签: jquery asp.net silverlight

我正在尝试使用jquery.html()来更改div的内容。 它可以识别

<SPSWC:ProfilePropertyLoader id="m_objLoader" LoadFullProfileOfCurrentUser="true" runat="server"/>

但它无法识别

<SPSWC:ProfileBrowser webpart="true" runat="server" __WebPartId="{DCD5C686-342C-46C6-AD85-B2C2D27A6EAF}">

我注册了以下内容:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

但是组织浏览器不会被识别,而在其他页面中它很好。

然后我用了

<object type="application/x-silverlight" data="data:application/x-silverlight," id="ProfileBrowserSilverlightControl" width="100%" height="100%">
<param name="top" value="30">
<param name="enableHtmlAccess" value="true">
<param name="source" value="/_layouts/ClientBin/hierarchychart.xap">
<param name="initParams" value="username",User,ctl00_m_g_9d50a31d_3b6b_47c5_809c_cf68c257eb9b_ctl00">
<param name="windowless" value="true">
<param name="onLoad" value="__slEvent0">

出现了一些东西,但在Fiddler中,没有任何查询要求

  

SilverlightProfileService.json / GetUserSLProfileData

通常效果很好。

任何人都有一些线索?

谢谢!

1 个答案:

答案 0 :(得分:0)

最后我使用了第一个,因为我无法用HTML对象的方式显示任何东西。如果有人对问题有什么想法,欢迎你告诉我。

为了避免使用jquery.html(),我直接在页面中集成了Web部件。 这是因为当jquery.html()将页面集成到原始页面时,它不会插入 ProfilePropertyLoader ,因为在Web部件中没有ProfileProperty。