What is the purpose of AutoEventWireup Page directive?

Tuesday, July 14, 2009


When set to true , it ensures that the event handlers for the page will be automatically called when the events occur on the page.



www.codecollege.NET

What is the difference between the Write and Warn methods of the TraceContext Class?


Write - Writes the message in default colour.
Warn - writes the message in red colour.



www.codecollege.NET

How will you enable tracing in a asp.net page?


By setting the following page directive,
Trace=True


Ex:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Trace="true" %>



www.codecollege.NET

How will you filter a DataView ?


You can do that by using the property,

RowFilter



www.codecollege.NET

How will you find a control in a page and access it?


You can find any control in a page using the following method,

FindControl(controlid);



www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books