What is a diffgram in .net?

Saturday, July 18, 2009


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;
}

}

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 ? 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
Blog Widget by LinkWithin