What are the layers in the 3-tier application ?

Saturday, July 18, 2009


There three layers in 3-tier application are:
1. Presentation (UI)
2. Business ( code Logic )
3. Data (storage)


www.codecollege.NET

When is the ViewState available during the page life cycle ?


Viewstate is available after the Init() and before the Page_Load() or OnLoad().


www.codecollege.NET

Do you know any of 3rd party Logging Component ?


log4net is a open source tool to help the programmer output log statements to a variety of output targets.


www.codecollege.NET

What is a lapsed listener problem in .NET?


It is the one of the causes for the leaks in .net. It occurs when a subscriber signs up for a publisher's event, but fails to unsubscribe. The problem is it doesnt get Garbage collected as it still holds reference.

Best solution is to give a UnSubscribe() method.


www.codecollege.NET

What are the valid datasources of a datagrid?


Valid data sources for the DataGrid are:

•DataTable
•DataView
•DataSet
•DataViewManager


www.codecollege.NET

Can the data in the repeater control be edited?


No.


www.codecollege.NET

What are jagged arrays ?


A jagged array is an array of arrays. The elements of a jagged array is also an array.

The elements of a jagged array can be of different dimensions and sizes.


www.codecollege.NET

What is a diffgram in .net?


A Diffgram is an XML format that is used to identify current and original versions of data elements. Dataset uses this format to load,persist and serialize data.


www.codecollege.NET

How to make a property Readonly in vb.net?

Dim eno As Integer

Public ReadOnly Property EmployeeNo As Integer
Get
Return eno
End Get
End Property

How to make a property Readonly in c#?

private int eno;

public int EmployeeNo
{

get
{
return eno;
}

}

Daily Tips- Tip #12 - How to map aspx pages with ISAPI in IIS? or How to Register ASP.NET with IIS?


The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows us to update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool. It has many more functionalities like listing all asp.net versions running,etc.

It is available in %windir%\Microsoft.Net\Framework\version folder.

The simple command to do the registration is,
aspnet_regiis -i -enable


www.codecollege.NET

what are the types of validation controls in asp.net?


There are 6 types of validation controls in asp.net, they are:
1. RequiredFieldValidator
2. RangeValidator
3. Regular Expression
4. CompareValidator
5. CustomValidator
6. ValidationSummary


www.codecollege.NET

What is an Error Provider Control ? What is an Error Provider Control ? Give an example.


The Error Provider control is used in windows forms to show error messages, it is like a validation control in asp.net.
Ex:
private void txtEmpName_Validating(object sender,System.ComponentModel.CancelEventArgs e)
{

if (txtEmpName.Text == "")
{

errProv.SetError (txtEmpName,"Enter Employee Name");

}

}


www.codecollege.NET

What is Event Bubbling ? or What is Bubbled Event ?


Event bubbling is a technique of ASP.NET page framework which allows a child control to propagate events to its containers.
They are raise by controls like Datagrid,Repeater,Datalist to make the events of the child like that of top controls. There are 2 methods using which a control can participate in event bubbling , they are :
1. OnBubbleEvent
2. RaiseBubbleEvent.


www.codecollege.NET

What are the Types of Caching in asp.net ? Explain with examples.


There are 3 types of caching in asp.net , they are:
1. Output Caching
2. Fragment Caching
3. Data Caching

1. Output Caching:
This type of caching caches the dynamic output generated.

Ex:
<%@ outputcache duration="75" VaryByParam="none" %>

2. Fragment Caching
This type of caching caches the portion of the page generated.

Ex:
Here caching is done based on the user control CtrlCountries,

<%@ outputcache duration="90" VaryByControl="CtrlCountries" %>

3. Data Caching
This type of caching caches the data object programatically.
Ex:
In the below example dsEmp is a dataset.
Cache.Insert("EmployeeDetails", dsEmp, Nothing,DateTime.Now.AddMinutes(.5), TimeSpan.Zero)





www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books