How can I include file through the ASPX?
The files can be included by the following syntax <!--include file='filename'--> <table> <tr> <td> <!--#include file='sample.html'--> </td> </tr> </table> Now the sample.htm will be displayed in the aspx page.
How can ASPX pages been refreshed perdiodically?
The meta tag has to be include which automatically refresh the page every n second. <meta http-equiv='Refresh' content='nn'>
How can a ClientSideEvent can be attached to a Custom control?
We can add any ClientSideEvent like Onclick,OnBlur in the Render Method as, protected override void Render(HtmlTextWriter writer) { _button.Attributes.Add('OnClick','JavascriptClickFunction'); }
How can the output cache can be enabled?
Output Cache can be enabled by the following line <%@ OutputCache Duration='60'%> This will make the page to be cached for 60 seconds.
How can I use Tracing in Custom Components?
In Custom Components, you can use tracing if you reference the System.Web namespace and use the HttpContext.Current object to get a reference to the current context. VB.NET C# Also make sure to set the following directives: For Page Level Tracing set Page Directive as For Application Level Tracing modify corresponding web.config as