How to make a property Readonly in c#?

Saturday, July 18, 2009

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

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

What are the new Features in MOSS 2007?

Friday, July 17, 2009


1. Business Data Catalog
2. Document Management
3. Web Content Management
4. Office SharePoint Server 2007 Excel Services
5. InfoPath Forms Services
6. Enhanced Search
7. Enhanced User Profiles,etc
8. Single Sign-on


www.codecollege.NET
Blog Widget by LinkWithin