|
3.2.3 - Configurations |
Top Previous Next |
|
Web.Config set up
You need to setup the connection string to connect to the database. In order to setup the application variable in ASP.NET, edit the Web.Config file in your web root. This is partial configuration of the Web.Config file for tutorial purpose only, the completed version is included in the zip package.
<configuration> ........... existing config here ........... <appSettings> <add key="SC_Connection_String" value="SERVER=xxxxxx;DATABASE=db_speedcheck;UID=xxxxxx;PWD=xxxxxx" /> </appSettings> ........... existing config here ........... </configuration>
Server = [your SQL server IP address] Database = [database name] Uid = [username] Pwd = [password]
Detail ASP.NET configuration is behind the scope of this document, you are required to have basic knowledge of IIS and ASP.NET server administration. For more information, search for "web.config" in Google.
Complete version of Web.Config:
<configuration> <appSettings> <add key="SC_Connection_String" value="SERVER=xxxxx;DATABASE=db_speedcheck;UID=xxxxx;PWD=xxxxx" /> <add key="SC_Statistics_Enabled" value="False" /> <add key="SC_Permission_Enabled" value="False" /> </appSettings> <system.web> <httpRuntime maxRequestLength="51200" /> <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="en-US" uiCulture="en-US" /> </system.web> </configuration>
|