all groups > dotnet xml > september 2005 >
You're in the

dotnet xml

group:

XSL and WebControls like datagrid


XSL and WebControls like datagrid Madhuri Mittal
9/30/2005 8:33:05 AM
dotnet xml:
Hi,

I want to use XML and XSLT to generate HTML in my asp.net application. I
want to be able to generate the asp.net datagrid control with all its
powerfuls features by this means as well as all other controls including some
usercontrols on my page. Is it possible to do that as well as any pointers to
example codes will be appreciated. Thanks

Madhuri Mittal

http://madhurimittal.blogspot.com

Re: XSL and WebControls like datagrid Madhuri Mittal
9/30/2005 9:52:02 AM
Martin,

I do not need to generate Server Side code- I know with XSLT you can embed
asp.net controls- like buttons etc in the generated html. I was wondering is
it possible to successfully embed a datagrid and catch all the events ?

Madhuri

[quoted text, click to view]
Re: XSL and WebControls like datagrid Madhuri Mittal
9/30/2005 11:01:02 AM
Ok thanks- it's more clear now-

[quoted text, click to view]
Re: XSL and WebControls like datagrid Martin Honnen
9/30/2005 5:47:38 PM


[quoted text, click to view]

If you want to generate ASP.NET controls with XSLT then you do not
generate HTML but server side code. You could generate the server side
source code with XSLT (using xsl:output method="text" or
disable-output-escaping) but then you would need to have that source
code integrated in your server side ASP.NET application and have that
compiled.
I am not sure ASP.NET 1.x has much support for that, there is a
LoadControl method to load a control from an ascx file it seems thus if
your XSLT creates such a file first then your ASP.NET should be able to
load that.

--

Martin Honnen --- MVP XML
Re: XSL and WebControls like datagrid Martin Honnen
9/30/2005 7:19:29 PM

[quoted text, click to view]

What do you think a datagrid is then? It is a server side ASP.NET
control so you seem to want to generate server side code (not
necessarily C# or VB.NET code but the declarative server side code that
goes into an .aspx page).

--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button