asp button in xsl

S

simon

Hi,
I was wondering how you include an asp.net button inside an xsl transform
file.

I want to put a button next to each entry when i style my xml data.

Thanks in advance,

Simon
 
G

Guest

Hi Simon,

I think one way to do this is would be to escape the "<" character;

<xsl:text disable-output-escaping="yes">
<asp:button id="mybutton" runat=server></asp:button>
</xsl:text>

and announce this as an aspx file.

I did similiar things to create an xslt file with an xslt transformation and
it worked well. Can you inform me if the one above also works or not?

Hope this helps,

Ethem
 
S

simon

Nah it doesn't work...... Without the escaping disabled I get a namespace
error - so neither way seems to work
 
G

Guest

Hi simon,

Yes you are right. I forgot about the namespace. I made a small search and
found one workaround for it but to me it's a bit ugly. Simply put, you write
a namespace for asp and then remove it on code after the transformation.
Here's the link if you want to take a look;

http://www.devarticles.com/c/a/ASP.NET/Creating-Dynamic-ASP.NET-Server-Controls-Using-XML/2/

Ugly ugly ugly !!! There should be a better way to do this. Maybe you should
ask it also on the msdn/xslt newsgroup.

Can you notify here also if you find a solution ?

Thanks,

Ethem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top