Archive for November, 2013

How to set a default document for a website in IIS

To set the default document for a website is IIS , open the IIS manager , Right Click on the website , goto properties and select the Documents tab , from there you can select the default document and set the priority.

Configure a Directory of website as an application in IIS

application

 

Goto start => Run and execute the command inetmgr to open IIS => expand the websites option in IIS . You will see a list of folders under the website , right click the folder which you want to configure as an application and click properties , you will get a dialog box click create and ok . Thats it the directory has been created as an application .

MSSQL 2005 connection string

Here is the MSSQL connection string to connect to MSSQL database to be used in the web.config file

<add name="example" connectionString="Data Source=IP or hostname of database server\SQLEXPRESS;
Initial Catalog=databasename;User ID=databaseuser;Password=#userpassword"
providerName="System.Data.SqlClient" />

(adsbygoogle = window.adsbygoogle || []).push({}); //--> Feedjit Flag Counter