Groups | Blog | Home
all groups > dotnet internationalization > october 2004 >

dotnet internationalization : Multilingual websites in ASP.net XSL


jorgeMatos
10/20/2004 11:17:02 AM
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.

[quoted text, click to view]
Asim Qazi
10/20/2004 2:05:31 PM
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

Jorge Matos
10/21/2004 6:25:05 AM
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
10/21/2004 1:01:37 PM
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]

AddThis Social Bookmark Button