aspx templates loading data from database RRS feed

  • Question

  • User-3617903 posted

    How do I bind the data from the database to the .aspx web form which acts as a
    template(with tables, textboxes, labels etc) and this is a common template for
    rendering a number of documents having different data from database.
    The template should be rendered with the data when user selects a document from a
    list of documents on the website.

    Tuesday, October 23, 2012 2:27 PM


All replies

  • User2144558116 posted

    Create an XSL template, which has the table, textboxes etc. Then in the code-behind you can bind the data from database to that template. You can use for-each, if, case statements in the XSL to show/hide elements based on data.

    Tuesday, October 23, 2012 4:28 PM
  • User1999579388 posted

    Hi spoilbirt,

    You could reference on below article to use templates to bind its data from database.

    Please see: http://www.codeproject.com/Articles/8659/Mastering-ASP-NET-DataBinding


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 30, 2012 4:51 AM