Search Placementyogi.com
 

Asp.Net Interview Questions and Answers

  :: Topics ::

5.

What is connectionStrings section in Web.config file in ASP.NET?

A: 

Web.config file is the most important file of any web project where project configuration can be defined. The connectionStrings section is used to configure the database connection for this project.

<configuration>
	<connectionStrings>
		<add name="ConnectionStringName" connectionString="Server=server_name; 
		Port=xxxx; Database=database_name;   Uid=user_id; Pwd=password" />
	</connectionStrings>
</configuration>

//ConnectionStringName : Any name for this connection
//server_name : Name of the host server or IP address
//xxxx : Port number for the used database
//database_name : Name of the database created for this project
//user_id : user id to connect to this database
//password : Password to connect to this database

Preview

Thanks for posting your comment! It will be visible soon!
Post Another Comment

1
+
5
=

Name:
Email :
 

Banner to LogicGuns.com

Hide Page Information