Where do we store our connection string in asp.net application?



Where do we store our connection string in asp.net application?..

Answer / Vivek Gosain

Store your connection string in the Web.config file under the AppSettings section or as a user-level resource in the config file (Web.Debug.config, Web.Release.config) or in the Code-behind (C#: SqlConnectionStringBuilder).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

how many select state ments are used in stored procedure?

8 Answers   CSC,


What are server side controls?

1 Answers  


How will you write a web service for secure socket layer? What is secure socket? Have you done any socket programming? What is single thread and multi thread? What are the differences between .NET 1.1 and .NET 2.2? What is the command to connect to a StoredProcedure? How many types of Adapters are available in ADO.NET? Why DataAdapters are important? What is DataSet? It's important to compile the ASP.NET application before using it? What protocol you use to stream the audio and Video data? What are the different kind of network protocols? Write how will you connect to a database using DataSet? Why we use AJAX? What AJAX can do which JavaScript can't do? In a page using Windows Media API, if we press a button and in succession quickly press another button, what do you think will happen? Will the application wait for the first button response and then execute the second one or directly second button command will execute. What is the architecture of your application? What is connection pooling in SQL? Tell some functions of Windows Media API? How you will detect, whether the ActiveX is installed in the system before accessing it? What are validators are available in ASP.NET? What are the basic concepts of OOPS? What is abstraction?

0 Answers   Tesco,


what is the cursor

1 Answers   Wipro,


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

1 Answers   Quest,


Which template must you provide, in order to display data in a Repeater control?

1 Answers  


Which is the parent class of the web server control?

1 Answers  


What are the session variables?

1 Answers  


Explain the scenario where we go for inpro and outpro session?

3 Answers  


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

1 Answers  


How do I publish my asp.net application to my isp's web server?

1 Answers  


What is the difference between mechine.config and web.config?

1 Answers  


Categories