Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Error when an anonymous user to access a webpart from a list of links

$
0
0

Hi, Have you seen a bug when an anonymous user accesses the webpart using a link xsl to format information?In the case gives the message "Access denied. You do not have permission to perform this action or access this resource."The problem is only for anonymous user using a link to an xsl file.Can anyone help me?

See the code xsl:

 <?xml version="1.0" ?>

-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt2="urn:frontpage:internal">
-<xsl:template match="*/Rows" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:ghost="">
-<table border="1" cellpadding="10">
-<xsl:for-each select="Row">
-<tr>
-<td style="text-align: center; font-weight: bold; cursor:pointer; background-image: url('../../Style Library/ImgImpeto/Bot_ListEmpresa.png'); background-repeat: no-repeat; width: 280px; height: 55px;">
-<xsl:attribute name="id">
 <xsl:value-ofselect="concat('MenuXslIdLinha',@ID)" />
 </xsl:attribute>
-<script>
 IdXsl = ('
 <xsl:value-ofselect="concat('MenuXslIdLinha',@ID)" />
 '); UrlXsl = ('
 <xsl:value-ofselect="@FileRef" />
 '); UrlAtiva = (location.href).replace(/%20/g,' '); UrlAtivaTruncada = UrlAtiva.substring(UrlAtiva.length - UrlXsl.length); if (UrlXsl == UrlAtivaTruncada) { document.getElementById(IdXsl).style.backgroundImage = "url('../../Style Library/ImgImpeto/Bot_ListEmpresaIN.png')"; }
 </script>
-<a style="text-decoration:none; color:#005788;">
-<xsl:attribute name="href">
 <xsl:value-ofselect="@FileRef" />
 </xsl:attribute>
 </a>
 <xsl:value-ofselect="@FileLeafRef.Name" />
 </td>
 </tr>
 </xsl:for-each>
 </table>
 </xsl:template>
 </xsl:stylesheet>

André Barroncas

Viewing all articles
Browse latest Browse all 2319

Trending Articles