The blog has moved to a new address. The blog is now located at http://devintelligence.com

Saturday, January 27, 2007

PropertyGrid: How to make specific property read only ?

Use ReadOnly attribute or remove set accessor ...

[ReadOnly(true)]
public int Age
{
get
{
return _Age;
}
set
{
_Age
= value;
}
}


 


source(russian)

PropertyGrid: How to group properties by category?

Use Category attribute .Note that properties without the attribute will be shown uder category named "Misc"

[DisplayName("First Name")]
[Description(
"First Name of the person")]
[Category(
"Personality")]
public string FirstName
{
get
{
return _FirstName;
}
set
{
_FirstName
= value;
}
}


[Category(
"Specific")]
public Color HairColor
{
get
{
return _HairColor;
}
set
{
_HairColor
= value;
}
}

source(russian)

PropertyGrid: How to show description for specific property?

 Use Description attribute

[DisplayName("First Name")]
[Description(
"First Name of the person")]
public string FirstName
{
get
{
return _FirstName;
}
set
{
_FirstName
= value;
}
}


 


source(russian)

PropertyGrid: How to change property name?

To display property name in readable form you can use DisplayName attribute

[DisplayName("First Name")]
public string FirstName
{
get
{
return _FirstName;
}
set
{
_FirstName
= value;
}
}


source(russian)

Wednesday, January 24, 2007

ASP.NET AJAX 1.0

ASP.NET AJAX 1.0 delivers a rich client-side AJAX library that provides cross platform, cross browser support for a core JavaScript type-system, JSON-based network serialization stack, JavaScript component/control model, as well as common client JavaScript helper classes.  ASP.NET AJAX also delivers a rich server-side library that integrates AJAX functionality within ASP.NET, and enables developers to easily AJAX-enable existing ASP.NET 2.0 sites with minimal effort. 

Download ASP.NET AJAX 1.0

Friday, January 12, 2007

MSN Search SDK Beta Version 0.60

The MSN Search SDK provides documentation that describes the core concepts, requirements, development guidelines, and class library for the MSN Search Web Service. The SDK also contains sample code that demonstrates application development techniques using the MSN Search Web Service.