Sunday, August 1, 2010

Is it possible to read Web.config files from browser?

No. It is not possible . As Machine.Config file has configuration settings which has entries that maps to CONFIG files, ASAX file with an HTTP handler "HttpForbiddenHandler", which prevents to retrieve the associated file.


immutable and mutable
String is immutable
i.e. Strings cannot be altered. When you alter a string (by adding to it for example), you are actually creating a new string.

But StringBuilder is not immutable
so if u have to alter a string many times, such as mutliple concatenations then use StringBuilder.