You could try adding ...
[code]xmlns:asp="http://schemas.microsoft.com"[/code]
... to the ...
[code][/code]
... but I'm not 100% sure what you're trying to achieve though.
Gordon, I'm still curious to why you want to have an ASP.NET control inside an XSLT? As it's going to be treated as text/html and not render as a .NET control.
[quote=leekelleher]Gordon, I'm still curious to why you want to have an ASP.NET control inside an XSLT? As it's going to be treated as text/html and not render as a .NET control.[/quote]
Ah, I didn't realise / appreciate that!
As things stand, it shouldn't be a problem as the panel should always have content.
Thanks Ismail for pointing out a valid way of doing it!
Why can't I have asp.net controls in my XSLT?
Umbraco V4 - why can't I just have -
[code]
Hi Gordon,
You could try adding ...
[code]xmlns:asp="http://schemas.microsoft.com"[/code]
... to the ...
[code][/code]
... but I'm not 100% sure what you're trying to achieve though.
Cheers,
- Lee
Basically, I don't want the panel to show if there's nothing in it. So I wanted to have the asp:panel inside an if-then statement inside the XSLT.
I'll try your suggestion ...
Gordon, I'm still curious to why you want to have an ASP.NET control inside an XSLT? As it's going to be treated as text/html and not render as a .NET control.
Gorden,
If you are in v4 then in the template you can do conditional stuff:
[code]
<%if(node.Id==1220){%>
<%}%>
[/code]
in your case you would have different condition and obviously macro would be panel.
Regards
Ismail
[quote=leekelleher]Gordon, I'm still curious to why you want to have an ASP.NET control inside an XSLT? As it's going to be treated as text/html and not render as a .NET control.[/quote]
Ah, I didn't realise / appreciate that!
As things stand, it shouldn't be a problem as the panel should always have content.
Thanks Ismail for pointing out a valid way of doing it!
is working on a reply...