Forms
-
I got next problem: I have a lot of different forms for completing, for example the form of water investigations, that have a lot of parameters that user must enter, the form of air investigation, that have a lot of another parameters that user must fill in and so on... And number of forms can grow... I don't want to write for each form a specified ASP.NET page, i want to have functionality, that can make it automatically... I think about XML/XSL, that can handle the information of appearance of page, but how to realize it - no idea... Is it trivial problem? Where can i find any example or theory about it?
-
I got next problem: I have a lot of different forms for completing, for example the form of water investigations, that have a lot of parameters that user must enter, the form of air investigation, that have a lot of another parameters that user must fill in and so on... And number of forms can grow... I don't want to write for each form a specified ASP.NET page, i want to have functionality, that can make it automatically... I think about XML/XSL, that can handle the information of appearance of page, but how to realize it - no idea... Is it trivial problem? Where can i find any example or theory about it?
Hi there, Basically, you use the XSL to format the output of the web page, and instead of using the built-in ASP.NET controls to display data, you use XSL to transform the input XML data to generate the output html markup. You can find more information about XLST from here[^]. However I don't think it will help you much in term of speeding up the development, since the XSL stylesheet might become more complicated to generate the output instead of using a simple web page .aspx with the standard controls. You can have a look this article[^] to learn more the pros and cons of this option. IMO, to increase the development performance, you might think of creating custom controls for the UI so that they can be reused in multiple web pages. You can also think of creating a template base page class for multiple pages, in the ASP.NET 2.0 it is named the Master page, then each page inherits much of the same functionality placed in the base page.