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

Tuesday, July 14, 2009


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

What are the special folders in asp.net and their purpose?

























Sno
Folder
Purpose
1 App_Code This folder is for the Non-page class files that
are compiled together to create a single assembly.
2 App_Data For the Database files used by the application.
3

App_Themes

For the Themes used by the
application.
4

Bin
For the Compiled code
used by the application


 

What is Causes Validation property for?


It is a property which determines whether the validation that has to be done by the validation control should happen or not on the button click. Default value is True.



www.codecollege.NET

What is AutoPostBack ?


It is a property which determines whether a page is posted back to the server when the value of the control changes. Applicable for controls like check box,drop-down list,radio button or text box. Default value is false.



www.codecollege.NET
Blog Widget by LinkWithin