How to read and write settings to App.config(Configuration in C# .NET 2.0)

It's really simple but not clear in MSDN.

Read

Write

Hope this helps.

Feel free to subscribe to our RSS feed.

How to read and write settings to App.config(Configuration in C# .NET 2.0)

It's really simple but not clear in MSDN.

Read

Write

Hope this helps.

Feel free to subscribe to our RSS feed.

Creating expandable property in ASP.NET web control

Today I want to show how to implement expandable property for web control(property like Font or Style in WebControl class)

For example we have class

The key string in this class is [TypeConverter(typeof (TresholdConverter))]. So we are going to implement TresholdConverter class

It inherits from ExpandableObjectConverter class and overrides 4 his methods. Function of this class is adding value convert support to property grid for design-time.

In web control you can implement such property for example:

If you something don't understand see to MSDN or ask your question here.

Feel free to subscribe to our RSS feed.

search engine optimisation
Advertise on this site

Live