Groups | Blog | Home
all groups > asp.net > october 2003 >

asp.net : Xslt and webcontrols


Thomas
10/31/2003 11:59:11 PM
Hello all,
Is it possible to use webcontrols in a xslt file eg.

<xsl:template match="products">
<asp:Button id="Button1" runat="server" Text="test"/>"></asp:Button>
</xsl:template>

/Thomas

Heinz Willi Wiedow
11/1/2003 8:43:28 AM
..why not!

You can use ParseControl and a PlaceHolder to render the control to a form.

The disadvantage is the control is not persistent and you have to use
FindControl to work with this controls.

I have used this technik for servey forms and it works fine.

I think if you google with servey and XSLT you will find the example that
point me in the right direction.



Greetings from Gernany



Heinz Willi Wiedow

"Thomas" <test@test.dk> schrieb im Newsbeitrag
news:uyl9FOAoDHA.3612@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button