What is the Difference between Web.config and global.asax?
Can we write connection String code in global.asax?
Answer Posted / hridya
We can place connction str in global.asax
bt
web.config file is generally considered a better place
because it's a
simple text file that is easily updated without needing to
recompile
anything and changes go into effect immediately.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is application variable in asp.net?
Explain the asp.net mvc folder conventions? : asp.net mvc
How does u get record no from 5 to 15 from a dataset of 100 records?
What is the difference between a candidate key and primary key?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
What is viewstate in asp net with example?
How can you implement encapsulation in asp.net?
From which base class all web forms are inherited?
What is custom events? How to create it?
Which of the following .NET framework supports Web API?
How you will handle session when deploying application in more than a server?
What is inproc and outproc?
Explain diff. Between friend and protected friend?
How to display validation messages in one control?
Can you explain page lifecycle in net?