Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ramu ajay 9 posts 29 karma points
    Oct 18, 2010 @ 17:25
    ramu ajay
    0

    user control rendering in Xslt?

     I have a control which brings user's location.

     <cc:SpotlightBlock id="Spotlight" SuppressWrapperTags="true" runat="server/>

    Is there anyway that I can render this control in xslt?????

  • Sascha Wolter 615 posts 1101 karma points
    Oct 18, 2010 @ 17:54
    Sascha Wolter
    0

    Hi ramu,

    To my knowledge you can't render a user control in xslt. You could bring the script to output the exact line as above, yet that wouldn't help as the stage where this control would be rendered by ASP.Net is already gone. You can place this line in your template though, that should work without problems.

    An alternative way, if you absolutely have to do it this way around, would be to write an xslt extension that basically generates the html output of the control and returns it as a string, then you could output it on the page like this:

    <xsl:value-of select="myExtension:RenderSpotlightBlock()" disable-output-escaping="yes" />

    Hope that makes some sense,

    Sascha

Please Sign in or register to post replies

Write your reply to:

Draft