How to read Web.Config

rosdi | .NET, Tips | Sunday, February 25th, 2007 |

If you are wondering how to read Web.Config file programatically in your code, use ConfigurationManager.

Shown below is how I retrieve ConnectionStrings from Web.Config.

[VBNET]
Dim connectionString As String
connectionString = System.Configuration.ConfigurationManager.ConnectionStrings(”YOUR_CONNECTION_NAME”).ConnectionString
[/VBNET]

How to change Visual Studio 2005 default web browser

rosdi | .NET, Tips | Saturday, May 6th, 2006 |

Set Visual Studio 2005 default browserVisual Studio 2005 detects your computer’s default browser during installation and will automatically set its browser to that (IE or Firefox or whatever).

There is no obvious way to change this. It is not even listed in the Option menu.

The only way to change VS2005 default browser is to right click on one of your .aspx file, and then select ‘Browse With’. From there you can choose the browser of your choice and make it the default.

I chose internal web browser as the default as this will greatly speed up by code and debug cycle.

Possibly related: I am not selling | 


Buy Domain Name: Malaysia Domain Name | Powered by WordPress | Theme by Roy Tanck | Googlebot never visited this page