Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: XML and Data Driven Questions Answered


Message #1 by "Scott Guthrie" <scottgu@m...> on Thu, 22 Mar 2001 09:30:08 -0800
Origional Question:

------------------------------



hongzhi_sun@y... asks:



What is the way to use asp.net to write web pages with frameset and

frames without using any asp pages?



In ASP I can use transformNode method of the DOMDocument object to

convert XML into HTML. Is there any advantage if we use this kind of

XML/XSLT techniques in ASP.net pages?



In ASP we can design a "data-driven" application which dynamically

generate every page according to the data in the database. The

maintainence is very good (although the performance may not very

ideal). Is there any way we can develop a "data-driven" application

using ASP.NET?



ScottGu's Answer:

------------------------------



Hi Hongzhi,



I'm afraid I'm not sure I understand your first question -- but here is

my take on the other two.



You can continue to utilize XSL/T with ASP.NET like you've done with ASP

in the past.  Alternatively you can use our new Server Control

functionality to generate your Web UI. 



If you want to continue to use XSL/T, you should check out our new

<asp:xml> server control that ships as part of ASP.NET.  This is a

high-performant way to apply XSLT transforms to XML data -- data that

can come from an XML file on disk or directly from a database.  The

beauty of the <asp:xml> server control is that it allows you to avoid

having to write code to do it -- instead you can can just declaratively

add it to your page.  I have an example of this that you might want to

check out at: http://www.eraserver.net/scottgu



You can easily do "data-driven" applications with ASP.NET that our

dynamically generated from schema within a database. These types of

applications are actually now much easier to do with ASP.NET than ASP --

because you can now leverage ASP.NET's built-in server control object

model to help cleanup and automate the process. 



www.aspfree.com has posted two good samples of how to do this in the

last week.  You can download the code and run them for yourself using

either one of the two URLs:



http://www.aspfree.com/aspnet/dynamiccolumns.aspx

http://www.aspfree.com/aspnet/createformcode.aspx



Hope this helps,



Scott


  Return to Index