APNSoft.com - Web Controls, components for ASP.NET
 About Us 
 Articles 
 Products
 Downloads 
 Purchase
 Support

Include
Controls Suite 4.5


Overview
Features
Reference Book
Live Demos
Include a file
Include a part of file
Application scenarios





Customizing the look-and-feel of APNSoft control is accomplished through the following steps:
  1. Specifying the XML Structure or Data Source.

    The control like a Menu or TreeView uses XML for defining structure since XML is the most convenient format for structured data. You can save the XML structure as a file and bind the control by specifying the StructureFileURL property. Also, you can set the DataSource property to specify a source of data and call the DataBind() method.
    ...
  2. Applying the Skin.

    A Skin is a folder with CSS Style and a set of graphic files that determine the way the control is going to look. A CSS Style consists of predefined classes. You use the SkinFolder property to link the control with Skin. The collection of ready-to-use skins is included in installer. Each component has a default Skin to see the result immediately.
    ...


This example demonstrates how to insert a part of HTML file into your Web page. To extract the contents of specific element (the MainDataDIV in our example) we use the free HtmlAgilityPack library. Data is processed in the event-handling method for the DataBinding event.



Code Samples:


© 2003-2017 APNSoft. All rights reserved.    Terms of use.