I can't speak for ASP.NET 2.0, but the current version of ASP.NET 1.1 does
not allow you to specify server controls inside of an XSL file.
One option for you would be to create a kind of pre-processor page that
would perform the XSL transformation, but instead of sending HTML to the
client, you would generate an ASPX web page instead - this ASPX page would
have server controls. Your pre-processor page could then redirect the
browser to the newly generated ASPX page.
Consequences:
1) You would not be able to use the "code-behind" feature since your ASPX
pages are generated
2) You would pay a performance cost for the pre-processing
[quoted text, click to view] "Asim Qazi" wrote:
> hi Matos
> Thanks for reply, so using DotNet i cannot write my UI in XSL, isn't
> there any alternative ??? ..... if ASP3.0 can do it, then y microsoft has
> not given its support in dotnet ???
>
> Qazi Asim
>
> "jorgeMatos" <jorgeMatos@discussions.microsoft.com> wrote in message
> news:8D1228E7-7812-481A-87BD-7DA0FD5744F7@microsoft.com...
> > Why do you need server controls? ASP.NET has an XML control that can do
> the
> > transformation for you, but if you're looking to take advantage of server
> > controls such as <asp:TextBox> <asp:DataGrid> then you'll have to abandon
> the
> > XSL transformation approach to generating the UI.
> >
> > "Asim Qazi" wrote:
> >
> > > Hi All
> > > i need to develop a multilingual s/w, i did it in ASP3.0 two years
> back,
> > > The main functionality i need is to put all the interface data in XSL
> > > Templates, make an XML packet in ASP, load XSL file transform it on
> server
> > > side and pass the pure HTML on the client, now the biggest problem i m
> > > facing is how to put runat server controls in XSL, and bind them to code
> > > behind. PLZ HELP
> > >
> > > Qazi Asim
> > >
> > >
> > >
>
>
hi Matos
Thanks for reply, so using DotNet i cannot write my UI in XSL, isn't
there any alternative ??? ..... if ASP3.0 can do it, then y microsoft has
not given its support in dotnet ???
Qazi Asim
[quoted text, click to view] "jorgeMatos" <jorgeMatos@discussions.microsoft.com> wrote in message
news:8D1228E7-7812-481A-87BD-7DA0FD5744F7@microsoft.com...
> Why do you need server controls? ASP.NET has an XML control that can do
the
> transformation for you, but if you're looking to take advantage of server
> controls such as <asp:TextBox> <asp:DataGrid> then you'll have to abandon
the
> XSL transformation approach to generating the UI.
>
> "Asim Qazi" wrote:
>
> > Hi All
> > i need to develop a multilingual s/w, i did it in ASP3.0 two years
back,
> > The main functionality i need is to put all the interface data in XSL
> > Templates, make an XML packet in ASP, load XSL file transform it on
server
> > side and pass the pure HTML on the client, now the biggest problem i m
> > facing is how to put runat server controls in XSL, and bind them to code
> > behind. PLZ HELP
> >
> > Qazi Asim
> >
> >
> >