Archive for category ASP.NET

How to read application settings from the Web.config file of an ASP.NET Website

There are many situations, in the development of an ASP.NET application, when particular values must be made visible from different Web Forms or code routines. These values can represent:

-    global values or keys associated with an application setting;
-    connections strings for databases
-    passwords and hash values
-    URLs for Web Services

The web.config file is an XML file that holds configuration information for the ASP.NET application. This file can be placed in the root directory of the ASP.NET site or in any other application subfolder. Among the configuration sections of the file, the application settings can be stored in the <appSettings> section using <add key=“” value=“”/> elements.
Read the rest of this entry »

No Comments

Solution for localhost problem in Firefox

If you develop Web sites on your local machine and not on a remote server then you want to test them. For that, it is used the URL of your local Web server (IIS, Apache, Tomcat) which is http://localhost.
When using Microsoft IE there is no problem but for Firefox, because some security issues, the browser requires authentication and asks for an user name and password when trying to open Web pages from localhost. Read the rest of this entry »

, ,

1 Comment

How to install IIS on Windows 7 and Vista

This solution describes installation of IIS 7 (Internet Information Services) on Windows 7 Ultimate, Vista using the Windows Features Wizard. Read the rest of this entry »

, , , ,

No Comments

How to determine the IIS version

This solution is for Windows 2K, Windows XP and Windows 2003 Server. IIS is the web server developed by Microsoft for all their OS platforms, both desktop and server. In order to determine the IIS (Internet Information Services) you must open the MMC (Microsoft Management Console) for IIS. Read the rest of this entry »

,

No Comments

Solution for “A potentially dangerous Request.Form value was detected from the client…”

This error is encountered in the case of Web applications which are developed with ASP.NET technology. When the page returns to the server to be processed it is generated an exception like this one Read the rest of this entry »

,

No Comments