APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

Include
Version 1.5



What's New
Overview
Features
Reference Book
Licensing
Support



Set Text Property
Include Page from URL




APNSoftInclude.dll is the component assembly file for the APNSoft Include.
It contains the APNSoft.WebControls namespace with APNSoftInclude class.


Properties


  • IncludeFileURL - the property representing the target url is used as a source text data for the include. Its value can be an absolute or relative URI.

    using APNSoft.WebControls;
    
    APNSoftInclude APNSoftInclude1 = new APNSoftInclude();
    APNSoftInclude1.IncludeFileURL = "http://www.yahoo.com";
    Response.Write(APNSoftInclude1.Render());
    


  • RequestURLTimeout - indicates the length of time, in milliseconds, until the request times out. It's value is between 20 and 200000.

    using APNSoft.WebControls;
    
    APNSoftInclude APNSoftInclude1 = new APNSoftInclude();
    APNSoftInclude1.IncludeFileURL = "http://www.yahoo.com";
    //5 seconds timeout
    APNSoftInclude1.RequestURLTimeout = 5000;
    Response.Write(APNSoftInclude1.Render());
    



  • Text - directly gets or sets the Text for Include.

    using APNSoft.WebControls;
    
    APNSoftInclude APNSoftInclude1 = new APNSoftInclude();
    APNSoftInclude1.Text =
    	"<table border=1><tr><td>"+
    	"HTML table with text."+
    	"</td></tr></table>";
    Response.Write(APNSoftInclude1.Render());
    


Methods


  • AddTextFromURL - read the text from URL, and add it to the Text property value.

    using APNSoft.WebControls;
    
    APNSoftInclude APNSoftInclude1 = new APNSoftInclude();
    APNSoftInclude1.AddTextFromURL("http://www.yahoo.com");
    Response.Write(APNSoftInclude1.Render());
    



  • Render - return the Text property value or text from URL defined by the property IncludeFileURL value.

    using APNSoft.WebControls;
    
    APNSoftInclude APNSoftInclude1 = new APNSoftInclude();
    APNSoftInclude1.Text =
    	"<table border=1><tr><td>"+
    	"HTML table with text."+
    	"</td></tr></table>";
    Response.Write(APNSoftInclude1.Render());
    



  • Reset - reset all properties to their default values.



Top of Page





  © 2003-2008 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center