Saturday, October 11, 2008

Setting a Default Browser for Visual Studio 2005/2008

Setting a Default Browser for Visual Studio 2005/2008 :Right click on a .aspx page in your solution explorer Select the "browse with" context menu option In the dialog you can select or add a browser. If you want Firefox in the list, click "add" and point to the firefox.exe filename Click the "Set as Default" button to make this the default browser when you run any page on the site. Happy programming...

Thursday, October 9, 2008

Dot Net Interview Tips - Part 3

Why should I store my shared assemblies in the GAC?You should install assemblies in the GAC only when necessary. As a general guideline, assemblies should be kept private and stored in the application's folder unless you explicitly need to share them. There are some benefits to storing shared assemblies in the GAC:Global LocationThe GAC is the known standard location for .NET shared assemblies. When an application attempts to load an assembly, the GAC is one of the first places it looks. If there's any chance that an application outside your control...

Dot Net Interview Tips - Part 2

How do I create a strong name key file for a .NET assembly?Visual Studio 2005 makes it easy to create a strong name key file:Select your assembly project in the Visual Studio Solution Explorer. Click the Properties button. The project properties will appear in the main window. Select the Signing tab.Check the Sign the assembly checkbox.In the Choose a strong name key file drop-down, select New. The "Create Strong Name Key" dialog appears.In the Key file name text box, type the desired key name. Typically this is the name of your assembly but can...

Dot Net Interview Tips - Part 1

What is a .NET assembly?An assembly is the primary building block of a .NET application and can take the form of a dynamic link library (DLL) or executable file (EXE). An assembly is a collection of functionality that is built, versioned, and deployed as a single implementation unit.What does an assembly contain?A .NET assembly may contain the following elements:Assembly Manifest - Metadata that describes the assembly and its contents (see below)Source Code - Compiled into Microsoft intermediate language (MSIL)Type Metadata - Defines all types,...